Page 1 of 1

Animate object position

PostPosted: Wed Jul 11, 2018 11:02 pm
by teidenzero
Hello,
I'm pretty new to shader writing in general, but I've been trying to replicate this way of animating an object position using a vertex shader (https://www.youtube.com/watch?v=A-nry6sPCfw at 14:30) but I don't understand how to feed the position information to the main output node.

If you can point me to some relevant documents too, I'd be happy because I wasn't able to find much documentation or examples.

Thanks

Re: Animate object position

PostPosted: Thu Jul 12, 2018 11:01 am
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

You'll have to resort to scripting in order to pass an updated position of an object to your shader, specifically by setting your properties' Type to Global so that they may be set via a C# script.

Our Smear sample, that you can find in the AmplifyShaderEditor > Examples > Official > Smear folder, shows exactly how you can achieve this.

Please let me know if this helps and if you have any further questions, I'll be happy to elaborate!