0
Ülevaatamisel
ViewDir in vertex offset does not work...
Copied from my question on the the forum:
Hey, i am not sure if this is a bug or just my lack of experience, so thought i ask here before posting on the feedback page...
i try to offset a vertex perpendicular to the view direction(billboard shader) but when ever i use the viewdir node in the vertex offset, the shader turns pink. Any tips on this?
----------------------------------------------------------------------------------------------------------------------------------
Murgilod replied:
I think this might be a bug. I tossed it into my testbed shader and as soon as I connect the view direction node to the vertex offset node in any way, I get this:
Shader error in 'Shader Forge/Crystalline Entity': undefined variable "viewDirection" at line 37
Hey, i am not sure if this is a bug or just my lack of experience, so thought i ask here before posting on the feedback page...
i try to offset a vertex perpendicular to the view direction(billboard shader) but when ever i use the viewdir node in the vertex offset, the shader turns pink. Any tips on this?
----------------------------------------------------------------------------------------------------------------------------------
Murgilod replied:
I think this might be a bug. I tossed it into my testbed shader and as soon as I connect the view direction node to the vertex offset node in any way, I get this:
Shader error in 'Shader Forge/Crystalline Entity': undefined variable "viewDirection" at line 37
0
Ülevaatamisel
Freya Holmér (Developer) 11 aastat tagasi
It's an old bug that should go away when the new dependency system is done
0
BecomingAt. 11 aastat tagasi
oh thx for the quick reply! Do you know a workaround for this? Maybe using object pos and view pos? Tried it but without luck :(
0
Freya Holmér (Developer) 11 aastat tagasi
You'll have to edit it manually afterwards, moving a single line of code, making sure it's defined before you use it. (I think)
0
BecomingAt. 11 aastat tagasi
Thx, i'll try!
Customer support service by UserEcho