12 lines
179 B
GLSL
12 lines
179 B
GLSL
float specularStrength;
|
|
|
|
#ifdef USE_SPECULARMAP
|
|
|
|
vec4 texelSpecular = texture2D( specularMap, vUv );
|
|
specularStrength = texelSpecular.r;
|
|
|
|
#else
|
|
|
|
specularStrength = 1.0;
|
|
|
|
#endif |