feat(instances): Support normals in vertex deformation

Aperta
#26 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by tracing the instance deformation path that carries mesh-local positions into the lighting surface, then inspect how the shadow pass consumes deformed positions. Add support for a kind to provide a mesh-local deformed normal alongside position while retaining the mesh or pose normal for position-only deformations. Done means lighting uses the supplied normal and the shadow pass still depends only on position; the issue names no files or tests.

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

Descrizione

deform can bend a mesh, but lighting still uses the normals from the original mesh or pose. This is visible on wind-bent foliage and other smooth deformations. Passing a corrected normal through carry and surface adds an interpolant and makes the kind replace its surface just to change a normal.

Let a kind supply a deformed normal in mesh-local space alongside the position. Keep the normal from the mesh or pose for existing position-only deformations. The shadow pass only needs the position.

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.