I’m trying to replicate the LWRP standard shader, so I can add some features on top (outlines, etc.), but apparently it’s not as easy as feeding textures into the main node. What am I missing? What other magic is going on in there? Or is there maybe even a better way to add stuff on top of another shader?
LWRP Standard on the left, my attempt on the right:
This is the graph:
1 Like
Just from the picture, I can tell that the normals are wrong, I’ve never used the shader graph before but one suggestion I have would be to see if there is an UnpackNormal node (or something like that) and attach it between the normal map slot and the normal map sampler. Otherwise do some more testing by creating 2 cubes, one with the default material on it and another with your shader on it (with no normal map specified/a really subtle normal map (whichever makes it look weird)). In the scene view make it display the normals and take a screenshot of both cubes side by side and post it here.
You appear to be doing everything correct. I believe this is a bug with the Shader Graph itself. It does not properly handle meshes that have been scaled.
2 years later, tried again, seems to work now!
2 Likes
Looks nice! Can you share the full shader?
Agreed, would you be so kind as to share this?
Thank you so much! You really saved me!
1 Like