Newer
Older
2024-Tsubasa / system / node_modules / three / src / renderers / shaders / ShaderChunk / lightmap_fragment.glsl.js
export default /* glsl */`
#ifdef USE_LIGHTMAP

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

	reflectedLight.indirectDiffuse += lightMapIrradiance;

#endif
`;