feat(instances): Allow two-sided rendering per renderer

Offen
#25 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

Start at the renderer API and trace how mesh sidedness controls face culling and back-face lighting. Follow the renderer’s depth and shadow passes as well. Done when renderer({ sides: 'both' }) applies two-sided rendering consistently in all passes, while the default still follows each mesh’s doubleSided setting.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Face culling and back-face lighting are set by each mesh in the pool. A cutaway or inspection view can need both faces of the same meshes that the main view draws one-sided. Duplicating the pool entries for this also duplicates their geometry.

Add an opt-in renderer({ sides: 'both' }) that disables back-face culling and uses two-sided lighting. Apply the same sidedness in the renderer’s depth and shadow passes. By default, use each mesh’s doubleSided setting.

Vorherrschende Sprache
TypeScript
Sterne
69
Forks
7
Ø Merge
1 Std. 48 Min.
Gemergte PRs (30 T.)
15

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus software-mansion/typegpu-kit

Alle Issues in software-mansion/typegpu-kit

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.