Question by
miguelSantirso · Dec 22, 2018 at 06:53 PM ·
materialshaders
[ShaderGraph] Position in object space, different in Play and Edit modes
This is happening when using LWRP and Shader Graph. I'm new to both so I'm probably missing something obvious :)
I am trying to create a simple shader that overlays a vertical gradient on top of the objects (darker in their base). This is what I have achieved so far:
And this is how it looks in play and edit mode:
There is a big difference between how it looks in Play Mode (this is the desired behavior) and how it looks in Edit mode and in Shader Graph.
Any help on why this happens and how to solve it?
Thanks!
screenshot-2018-12-22-at-195013.jpg
(221.0 kB)
screenshot-2018-12-22-at-193814.png
(413.6 kB)
Comment