PBRGraph shader does not work for points topology

Abierto
#816 1 comentario 0 reacciones 1 asignado Ver en GitHub

@robertdorn83 ya está trabajando en esto.

Desde el 24/2/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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 🩹
Lenguaje dominante
C#
Estrellas
2.3k
Forks
539
Merge medio
3 d 15 h
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de KhronosGroup/UnityGLTF

Todos los issues de KhronosGroup/UnityGLTF

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.