Animate object position

Your feedback is very important to us. We are listening.

Animate object position

Postby teidenzero » Wed Jul 11, 2018 11:02 pm

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
teidenzero
 
Posts: 3
Joined: Wed Jul 11, 2018 10:54 pm

Re: Animate object position

Postby Amplify_Borba » Thu Jul 12, 2018 11:01 am

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!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests