PBRGraph shader does not work for points topology

未关闭
#816 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@robertdorn83 已经在做这个了。

开始于 2025年2月24日。

评估

这个 Issue 还没有评估数据。

描述

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 🩹
主要语言
C#
星标
2.3k
派生
539
平均合并
3 天 15 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

KhronosGroup/UnityGLTF 的其他 Issue

查看 KhronosGroup/UnityGLTF 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。