Use simplified custom shadergraph on import.

Đang mở
#830 2 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 2/4/2025.

Đánh giá

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

Mô tả

docs

Hey, thanks for your work on UnityGLTF.

I would like to use a custom shadergraph that just has the most essential features to save on performance for a mobile application. That shader would just have DiffAlpha, Norm, ORM, and optionally an Emis texture. No fancy features and no texture transform.

Would this give me a performance improvement in comparison to the PBRGraph shader? If I inspect the PBRGraph, I can see a lot of nodes that would not be neccessary for my simple usecase (after stripping shader variants with the boolean keywords).

It would be nice if a different shader could be selected in the import options. My usecase is only editor import, not runtime. This would also allow for SimpleLit PBR approximations.

At the moment, is there any way to do this without extracting all the materials and manually assigning a different shader?

Thank you
Ludwig

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.