OpenGL2: Set RGBM to use a multiplier of 1, and only use it with HDR lightmaps.
This commit is contained in:
parent
6beab9cf58
commit
79e9baedf8
3 changed files with 44 additions and 47 deletions
|
@ -346,7 +346,7 @@ void main()
|
|||
vec4 lightSample = texture2D(u_LightMap, var_TexCoords.zw);
|
||||
vec3 lightColor = lightSample.rgb;
|
||||
#if defined(RGBM_LIGHTMAP)
|
||||
lightColor *= 32.0 * lightSample.a;
|
||||
lightColor *= lightSample.a;
|
||||
#endif
|
||||
#elif defined(USE_LIGHT_VECTOR) && !defined(USE_FAST_LIGHT)
|
||||
vec3 lightColor = u_DirectedLight * CalcLightAttenuation(float(var_LightDir.w > 0.0), var_LightDir.w / sqrLightDist);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue