feat(instances): Support normals in vertex deformation

Ouverte
#26 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
57/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
69
Forks
7
Merge moyen
1 h 48 min
PR mergées (30 j)
15

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de software-mansion/typegpu-kit

Toutes les issues de software-mansion/typegpu-kit

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.