Shader not working

what could be a reason for this shader not working?

Original Post on Discord

by user 546555823451668481

Did you add an ExportShader asset label to the shader?

yes

by user 546555823451668481


by user 546555823451668481

How does the shader look in Unity?
Which RP are you using?
Are you accessing lighting information in the shader?

this is how it is

by user 546555823451668481

This is a Lit shader, right?

How to know if its a lit shader? Its not using specular, matcap etc

by user 546555823451668481

If something reacts to lights in your scene it’s called a lit shader. You can check if you rotate a directional light and the surface changes

okay thanks’

by user 546555823451668481

and the gltf shader doesnot work in urp

by user 546555823451668481

Which gltf shader doesnt work? We use PBRGraph in all our projects (most are using URP)

gltf pbr metallic roughness or specullar

by user 546555823451668481

both not working in urp

by user 546555823451668481

same for pbr graph, it looks dark

by user 546555823451668481

What does „it looks dark“ mean? Can you post a screenshot?

Could it be that you have switched to such a shader but so left the ExportShader tag on the asset?

These shaders definitely work in urp, many people use them. Need a bit more context to help you please

getting this now

by user 546555823451668481

created a new scene only to test and with everything unchanged it looks like this

by user 546555823451668481