fireball/lib/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl

10 lines
200 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
#ifdef USE_EMISSIVEMAP
vec4 emissiveColor = texture2D( emissiveMap, vUv );
emissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;
totalEmissiveRadiance *= emissiveColor.rgb;
#endif