PBRGraph shader does not work for points topology

Đang mở
#816 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@robertdorn83 đang làm issue này rồi.

Từ ngày 24/2/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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 🩹
Ngôn ngữ chính
C#
Star
2.3k
Fork
539
Merge trung bình
3 ngày 15 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của KhronosGroup/UnityGLTF

Tất cả issue của KhronosGroup/UnityGLTF

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.