fireball/lib/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl

11 lines
252 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
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