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

12 lines
179 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
float specularStrength;
#ifdef USE_SPECULARMAP
vec4 texelSpecular = texture2D( specularMap, vUv );
specularStrength = texelSpecular.r;
#else
specularStrength = 1.0;
#endif