danini-the-panini/mittsu-opengl

View on GitHub
lib/mittsu/opengl/shader/chunks/map_fragment.glsl

Summary

Maintainability
Test Coverage
#ifdef USE_MAP

    vec4 texelColor = texture( map, vUv );

    texelColor.xyz = inputToLinear( texelColor.xyz );

    diffuseColor *= texelColor;

#endif