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
{{ message }}
Repository navigation
LocalReflections adds screen-space reflections on top of the environment specular #4142
The scene color already holds the specular reflection of the environment lights (the skybox light) for the same pixel, and nothing takes it out. Where a ray hits the scene, the surface shows both at once: the reflected object and the sky "through" it.
Expected: a reflection found on screen replaces the reflection of the environment, in proportion to how much of the pixel's rays hit the scene. The reflection of a dark object in a mirror-like floor is dark.
Actual: the reflection of an object is never darker than the sky reflection of the surface, so reflections look washed out. The error scales with the specular color: small on dielectrics, obvious on metals.
Steps to reproduce
A scene with a skybox light (a bright sky) and a glossy metal floor (metalness 1, glossiness about 0.9).
Put a dark matte box on the floor.
Enable Local Reflections in the post effects of the graphics compositor.
Compare the reflection of the box in the floor with the box itself: the reflection is much brighter, it has the sky's color added.
Activity