diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-03 12:46:30 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-03 12:46:30 +0100 |
commit | daf168f4c821980a6a06fde67057f6a14d9e20c6 (patch) | |
tree | 3a3a1d22df0cdf047b0833d505778b3d240254d6 /drivers/gles3/shaders/scene.glsl | |
parent | 29ddbfa19a7104ee4a7350c78b28378ca96f29c5 (diff) | |
parent | 1e05dd350492c5fe2e7fd4729a3f79da7735c904 (diff) |
Merge pull request #69522 from clayjohn/IBL-black-metal
Allow black metallic materials to reflect IBL
Diffstat (limited to 'drivers/gles3/shaders/scene.glsl')
-rw-r--r-- | drivers/gles3/shaders/scene.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 75b28dbf2b..adb4562750 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -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 } |