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

Aperta
#25 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
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
TypeScript
Stelle
69
Fork
7
Merge medio
1h 48m
PR unite (30g)
15

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 software-mansion/typegpu-kit

Tutte le issue di software-mansion/typegpu-kit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.