Go over the vertexlit shader again.

This commit is contained in:
Marco Cawthorne 2022-01-13 10:47:51 -08:00
parent 33795822a9
commit 1716e740cf
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 12 additions and 11 deletions

View File

@ -87,18 +87,19 @@ varying mat3 invsurface;
#else
lightmaps = texture2D(s_lightmap, lm0).rgb * e_lmscale.rgb;
#endif
#if gl_ldr==1
if (lightmaps.r > 1.5)
lightmaps.r = 1.5f;
if (lightmaps.g > 1.5)
lightmaps.g = 1.5f;
if (lightmaps.b > 1.5)
lightmaps.b = 1.5f;
if (gl_ldr == 1.0) {
lightmaps.rgb * 0.5f;
lightmaps.rgb = floor(lightmaps.rgb * vec3(32,64,32))/vec3(32,64,32);
lightmaps.rgb * 2.0f;
#endif
if (lightmaps.r > 1.5)
lightmaps.r = 1.5f;
if (lightmaps.g > 1.5)
lightmaps.g = 1.5f;
if (lightmaps.b > 1.5)
lightmaps.b = 1.5f;
lightmaps.rgb * 0.5f;
lightmaps.rgb = floor(lightmaps.rgb * vec3(32,64,32))/vec3(32,64,32);
lightmaps.rgb * 2.0f;
}
return lightmaps;
}