PBRGraph shader does not work for points topology

Aperta
#816 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@robertdorn83 ci sta già lavorando.

Dal 24/2/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug spec compliance
Describe the bug 💬

The attached model has some points topology in it.
Unity tries to render it, but fails with a shader error:

Drawing with MeshTopology.Points, yet the vertex program 'UnityGLTF/PBRGraph' does not have PSIZE output.

I think that points should probably be rendered with a custom unlit shader that supports map + color + vertex color (lighting on them doesn't really make sense), but care has to be taken to ensure compatibility with BiRP, URP, HDRP.

Steps to reproduce 🔢
  1. Download 20250223-MixedTopologySphere.glb.zip
  2. Import in Unity at edit time
Files to reproduce the issue ♻

No response

Editor Version 🎲

2021.3

Render Pipeline and version

URP

UnityGLTF Version

2.14

Operating System 👩‍💻

macOS

When does this problem happen?
  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export
Additional Info 📜

Related: https://github.com/atteneder/glTFast/issues/246

Validations 🩹
Lingua principale
C#
Stelle
2.3k
Fork
539
Merge medio
3g 15h
PR unite (30g)
2

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 KhronosGroup/UnityGLTF

Tutte le issue di KhronosGroup/UnityGLTF

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.