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

9 lines
142 B
GLSL

#ifdef USE_MAP
vec4 texelColor = texture2D( map, vUv );
texelColor = mapTexelToLinear( texelColor );
diffuseColor *= texelColor;
#endif