Shader functions issue ?

Node-based Shader Editor

Shader functions issue ?

Postby cAyou » 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 !
cAyou
 
Posts: 39
Joined: Mon Oct 29, 2018 7:12 pm

Re: Shader functions issue ?

Postby cAyou » Mon Dec 31, 2018 3:37 pm

Nevermind, the issue was not coming from here, so it looks like having public variables works as intended.
Cheers !
cAyou
 
Posts: 39
Joined: Mon Oct 29, 2018 7:12 pm


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 119 guests