feat(instances): Support normals in vertex deformation

Offen
#26 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
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

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.