Skip to content

Add capability to use model lighting with shaders enabled

Hannu Hanhi requested to merge Hannu_Hanhi/SRB2:ogl-model-lighting-shader into next

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.

Edited by Hannu Hanhi

Merge request reports

Loading