map_fragment.glsl 170 B

12345678910111213
  1. #ifdef USE_MAP
  2. vec4 texelColor = texture2D( map, vUv );
  3. #ifdef GAMMA_INPUT
  4. texelColor.rgb *= texelColor.rgb;
  5. #endif
  6. diffuseColor.rgb *= texelColor.rgb;
  7. #endif