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