UNPKG

three

Version:

JavaScript 3D library

8 lines (5 loc) 225 B
export default /* glsl */` #ifdef USE_LIGHTMAP reflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity; // factor of PI should not be present; included here to prevent breakage #endif `;