Skip to content

Commit

Permalink
Fix lightMapping_fp compile error
Browse files Browse the repository at this point in the history
Use the correct cvars and initializer that is supported on earlier GLSL versions.
  • Loading branch information
VReaperV committed Sep 8, 2024
1 parent c02552b commit a5def6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/renderer/glsl_source/lightMapping_fp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ void main()
#if defined(r_specularMapping) || defined(r_physicalMapping)
// Compute the material term.
vec4 material = texture2D(u_MaterialMap, texCoords);
#elif defined(r_dynamicLight) && r_dynamicLightRenderer == 1
#elif defined(r_realtimeLighting) && r_realtimeLightingRenderer == 1
// The computeDynamicLights function requires this variable to exist.
vec4 material = { 0, 0, 0, 1 };
vec4 material = vec4( 0.0, 0.0, 0.0, 1.0 );
#endif

// Compute final color.
Expand Down

0 comments on commit a5def6d

Please sign in to comment.