Add capability to use model lighting with shaders enabled
- Jul 19, 2020
-
-
Hannu Hanhi authored
-
- Jul 18, 2020
-
-
Hannu Hanhi authored
-
Hannu Hanhi authored
-
The OpenGL API does not allow usage of fixed-function lighting and shaders at the same time, so using model lighting and shaders simultaneously in SRB2 was not possible. This patch fixes that by implementing a shader that replicates the model lighting functionality. This shader is used when model lighting and shaders are both enabled.