fireball/lib/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl
2018-12-25 17:29:22 +03:30

10 lines
200 B
GLSL

#ifdef USE_EMISSIVEMAP
vec4 emissiveColor = texture2D( emissiveMap, vUv );
emissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;
totalEmissiveRadiance *= emissiveColor.rgb;
#endif