mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Fix Apple GLSL compile errors
This commit is contained in:
parent
c08fc8f5a8
commit
669238db66
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ float R_DoomLightingEquation(float light)
|
||||||
|
|
||||||
/* The zdoom light equation */
|
/* The zdoom light equation */
|
||||||
float vis = globVis / z;
|
float vis = globVis / z;
|
||||||
float shade = 64.0 - (L + 12) * 32.0/128.0;
|
float shade = 64.0 - (L + 12.0) * 32.0/128.0;
|
||||||
float lightscale = clamp((shade - min(24.0, vis)) / 32.0, 0.0, 31/32.0);
|
float lightscale = clamp((shade - min(24.0, vis)) / 32.0, 0.0, 31.0/32.0);
|
||||||
|
|
||||||
// Result is the normalized colormap index (0 bright .. 1 dark)
|
// Result is the normalized colormap index (0 bright .. 1 dark)
|
||||||
return lightscale;
|
return lightscale;
|
||||||
|
|
Loading…
Reference in a new issue