Shader functions issue ?
Posted: Mon Dec 31, 2018 3:11 am
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 !
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 !