atteneder / glTFast

Efficient glTF 3D import / export package for Unity
Other
1.24k stars 250 forks source link

GLTFast doesn't fully support URP version 13 #568

Open lizhang4 opened 1 year ago

lizhang4 commented 1 year ago

Hi, I have imported GLTFast on unity 2022.1.14f1 with urp version 13+, however, we are having an issue where transparency from the model doesn't render properly and emission doesn't render the right color as well. I am wondering are there any fix that we can apply to fix these issues?

FrogsInSpace commented 1 year ago

I've experienced this too in my builds. For me the cause was that i did'nt include the glTFast shadergraphs in the preloaded shaders ( "Project Settings->Graphics->Preloaded Shaders" ). as soon as i added the "ShaderGraphs/glTF-pbr.." graphs, the problem was fixed. BTW: Afaik this should only be relevant if you dynamically load the gltf models and do not have them referenced somewhere directly in your project. In the latter case the shadergraphs would already be referenced too and automatically included too, so your problem would be cused by something else.

strudgian commented 1 year ago

I've come across this problem before making GLTFast the lesser choice compared to Siccity's package. I am re-implementing this as siccity gives us hard crashes. I will implement as your fix suggests @FrogsInSpace.

I will report back here to see if the problem still persists to keep the thread going as this was undesirable when initially implementing GLTFast and needs addressing if the problem is still ongoing

For reference I am using 2021.3.9f1 with URP version 12.1.7