You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When looking at the sun through a reflection, the sun's center has a black pixel. After attaching Nsight, I saw that the light_gbuffer.hlsl shader outputs inf for the pixel in the center of the sun's reflection.
I 'fixed' it by clamping the shader output between zero and a large value, but I don't properly understand all the PBR shader code so I don't know a more correct way of fixing it.
To Reproduce
Go to this commit on main: 6145eaa (the latest at the time of submitting this bug report)
Load a model with a mirror-like reflective surface (I used the car.ron scene)
Rotate the sun so that it's visible in the reflection
The sun has a dark spot in the center.
Expected behavior
The sun's center should not have a darker spot like that.
Describe the bug
When looking at the sun through a reflection, the sun's center has a black pixel. After attaching Nsight, I saw that the
light_gbuffer.hlsl
shader outputsinf
for the pixel in the center of the sun's reflection.I 'fixed' it by clamping the shader output between zero and a large value, but I don't properly understand all the PBR shader code so I don't know a more correct way of fixing it.
To Reproduce
car.ron
scene)Expected behavior
The sun's center should not have a darker spot like that.
Screenshots
Device:
rustc 1.64.0-nightly (ddcbba036 2022-06-29)
cargo 1.64.0-nightly (dbff32b27 2022-06-24)
The text was updated successfully, but these errors were encountered: