Allow black metallic materials to reflect IBL

This commit is contained in:
clayjohn 2022-12-02 19:45:17 -08:00
parent 6f1d4fd887
commit 1e05dd3504
4 changed files with 4 additions and 4 deletions

View file

@ -1162,7 +1162,7 @@ void main() {
float a004 = min(r.x * r.x, exp2(-9.28 * ndotv)) * r.x + r.y;
vec2 env = vec2(-1.04, 1.04) * a004 + r.zw;
specular_light *= env.x * f0 + env.y * clamp(50.0 * f0.g, 0.0, 1.0);
specular_light *= env.x * f0 + env.y * clamp(50.0 * f0.g, metallic, 1.0);
#endif
}