specularmap_fragment top-level property

String specularmap_fragment
getter/setter pair

Implementation

String specularmap_fragment = """
float specularStrength;

#ifdef USE_SPECULARMAP

	vec4 texelSpecular = texture2D( specularMap, vUv );
	specularStrength = texelSpecular.r;

#else

	specularStrength = 1.0;

#endif
""";