Newer
Older
HuangJiPC / public / static / three / src / renderers / shaders / ShaderChunk / lightmap_fragment.glsl.js
@zhangdeliang zhangdeliang on 21 Jun 232 bytes update
export default /* glsl */`
#ifdef USE_LIGHTMAP

	vec4 lightMapTexel = texture2D( lightMap, vUv2 );
	vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;

	reflectedLight.indirectDiffuse += lightMapIrradiance;

#endif
`;