Mr_jigs wrote:Hello Ricardo,
I must be pretty dense at the moment. I have had a look at the code you suggested but I can't see an example of getting access to the values of a particular node. I can see getting access to properties of the material class but not to any of the amplify nodes.
Fortunately, after searching through the other samples I came across another example called HighlightAnimated which had a script by the same name that did show how to access a node value. I managed to get my testcase working.
For those looking for the same information:
check out highlightAnimated.cs, pay attention to the namespace.
check out the shader code properties section to find out what is available to you.
Cheers
Hello,
No problem, we would be happy to elaborate. Notice the variables set to Global in the shader, inside the comment box "Fed by a script", they are updated by the Smear.cs script.
Your example is also good reference on how to alter material properties.
Be sure to let us know if you have any additional questions.
Thanks!