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

12 lines
179 B
GLSL

float specularStrength;
#ifdef USE_SPECULARMAP
vec4 texelSpecular = texture2D( specularMap, vUv );
specularStrength = texelSpecular.r;
#else
specularStrength = 1.0;
#endif