LocalReflections adds screen-space reflections on top of the environment specular

Aperta
#4,142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Start with SSLRCombinePass.sdsl, identified in the issue, and trace how the Local Reflections combine pass blends screen-space reflections with scene color and environment specular. Reproduce with a bright skybox, glossy metal floor, and dark box. Done when an on-screen reflection replaces the environment reflection in proportion to scene hit coverage, so the box reflection is dark.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area-Graphics area-Shaders bug
Stride version

master

Platforms

Linux

Graphics API

Vulkan

What happens

The combine pass of the Local Reflections post effect adds the resolved reflection to the scene color:

sceneColor.rgb += ssr.rgb * EnvBRDFApprox(specularColor, roughness, NoV) (SSLRCombinePass.sdsl)

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
  1. A scene with a skybox light (a bright sky) and a glossy metal floor (metalness 1, glossiness about 0.9).
  2. Put a dark matte box on the floor.
  3. Enable Local Reflections in the post effects of the graphics compositor.
  4. 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.
Log and callstack

Screenshots and other details

No response

Lingua principale
C#
Stelle
8k
Fork
1.2k
Merge medio
1g 1h
PR unite (30g)
321

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stride3d/stride

Tutte le issue di stride3d/stride

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.