nunuhara / xsystem4

Cross-platform implementation of AliceSoft's System 4 engine
GNU General Public License v2.0
45 stars 4 forks source link

TapirEngine: Simplify lighting #203

Closed kichikuou closed 1 week ago

kichikuou commented 1 week ago

In TapirEngine, the following lighting features are not used:

(The setters / getters for these parameters are still there, but they don't affect rendering.)

This implementation disables those features in GLSL using #ifdefs. The C code that sets up the lighting remains almost unchanged -- glGetUniformLocation() will return -1 if the specified uniform variable name is not found, and glUniform*(-1, ...) will be no-op.

nunuhara commented 1 week ago

Thanks!