specularmapFragment top-level property

String specularmapFragment
getter/setter pair

Implementation

String specularmapFragment = """
float specularStrength;

#ifdef USE_SPECULARMAP

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

#else

	specularStrength = 1.0;

#endif
""";