Page 1 of 1

Shader functions issue ?

PostPosted: Mon Dec 31, 2018 3:11 am
by cAyou
Hi !
I'm currently making a snow shader, and for vertex offset calculation I've made a shader function so I can use it from different places. It works well but I've seen one small issue so I want to clarify a subject.
If you create public properties inside a shader function, ASE will let you do it, but what if you use more than once this node inside the master shader? So far it looked like I didn't have any issue (it compiles), but after investigating some weird stuff related to it I was wondering if I get the correct data inside my function no matter how many time I use it in my shader.
Thanks !

Re: Shader functions issue ?

PostPosted: Mon Dec 31, 2018 3:37 pm
by cAyou
Nevermind, the issue was not coming from here, so it looks like having public variables works as intended.
Cheers !