Spaces:
Running
Running
File size: 282 Bytes
6cd9596 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
export default /* 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
`;
|