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

オープン
#4,142 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C#
スター
8k
フォーク
1.2k
平均マージ
1日 1時間
マージ済み PR(30日)
321

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stride3d/stride のほかの issue

stride3d/stride の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。