|
@@ -3,12 +3,12 @@ export default /* glsl */`
|
|
|
|
|
|
#ifdef USE_LIGHTMAP
|
|
#ifdef USE_LIGHTMAP
|
|
|
|
|
|
- vec4 lightMapTexel= texture2D( lightMap, vUv2 );
|
|
|
|
|
|
+ vec4 lightMapTexel = texture2D( lightMap, vUv2 );
|
|
vec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;
|
|
vec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;
|
|
|
|
|
|
#ifndef PHYSICALLY_CORRECT_LIGHTS
|
|
#ifndef PHYSICALLY_CORRECT_LIGHTS
|
|
|
|
|
|
- lightMapIrradiance *= PI; // factor of PI should not be present; included here to prevent breakage
|
|
|
|
|
|
+ lightMapIrradiance *= PI;
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|