Use simplified custom shadergraph on import.

Aberta
#830 2 comentários 0 reações 1 responsável Ver no GitHub

@robertdorn83 já está trabalhando nisso.

Desde 2/4/2025.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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

Linguagem predominante
C#
Estrelas
2.3k
Forks
539
Merge médio
3d 15h
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de KhronosGroup/UnityGLTF

Todas as issues de KhronosGroup/UnityGLTF

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.