How to drive shader at specific animated colored portion

   2209   1   1
User Avatar
Member
1 posts
Joined: May 2015
Offline
#‎urgent‬
Hello everybody,
This is regarding a project I am working on currently.
I want to apply material shader with displacement on red portion while the grey areas will have a constant shader. Trick is red portion is animated and moving from point 1 to 2. How to use this red color value to drive my shader from point 1 to 2. Any help is appreciated. Its kind of urgent and I am stuck badly here.
Thanks in advance.

Attachments:
Screenshot 2015-05-27 16.50.25.png (26.8 KB)

User Avatar
Member
258 posts
Joined:
Offline
It seems as if your red has no fall off so if you were to use it it would go from no displacement to full displacement rather than have any kind of blend.

To accomplish this is easy, just create an attribute, float - call it displacement_mult(or whatever you want) and set its value to $CR, which sets the value to whatever red value exists.

In your shader you would import that attribute with a bind or whatnot, set it to float and input that into the displacement amount. You can add in a multiply constant to tweak the values.
  • Quick Links