studio lighting light records + one thing that hangs the gpu

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

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

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

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
15/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
活発

調査の方向性

The payload names the shader PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING, which reads 512-byte light records, plus the indirect_light_probes and CS_ApplyProbeIrradiance path. It does not say what change is wanted, so a newcomer would first need the maintainer to state whether this is a note to record, a bug to fix, or a doc to write. Reading the light-record layout around offsets +0x40 and +0x73 is the starting point; done is not defined in the issue.

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

説明

so PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING reads lights from 512 byte records and theres a couple things that tripped me up hard:

  • the dword at +0x40 isnt a float, its top byte is a loop count and the low 24 bits have to be non zero or the light just gets skipped. if u stick a float in there the loop count goes crazy and the gpu hangs lol so if anyone sees a device lost in that shader check that first
  • colour + intensity come from a small profile table (16 bytes per profile, rgb + intensity) and the light is skipped if that intensity is 0, so an all black light doesnt always mean the light math is broken
  • the light records shadow strength is a byte at +0x73, if its 0 the shadow map gets read but does nothing which is super confusing to debug
  • also fyi this shader has no ambient at all, the cube and 2d samples in there are per light cookies. the actual indirect light is the indirect_light_probes / CS_ApplyProbeIrradiance stuff which is its own whole system
主要言語
Python
スター
14.9k
フォーク
1.2k
平均マージ
1時間 58分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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