11 lines
252 B
GLSL
11 lines
252 B
GLSL
float metalnessFactor = metalness;
|
|
|
|
#ifdef USE_METALNESSMAP
|
|
|
|
vec4 texelMetalness = texture2D( metalnessMap, vUv );
|
|
|
|
// reads channel B, compatible with a combined OcclusionRoughnessMetallic (RGB) texture
|
|
metalnessFactor *= texelMetalness.b;
|
|
|
|
#endif
|