Jump to content
trandzik

Controlling shader properties

Recommended Posts

Hello,

I am trying to set value of shop_disable_displace_shader parameter using Properties VOP inside material. Setting its value manually works without problem, but when I plug some value in this parameter, it won't update anymore. I have created simple setup, where disable_disp attribute from geometry is used as value for shop_disable_displace_shader. Unfortunately, changing disable_disp won't change the state of shop_disable_displace_shader. Same value is set as color, so I am sure Bind VOP inside material is working. Please, does anyone know what is wrong with this setup or how can I make it work? Thanks.

Peter

properties.hiplc

Share this post


Link to post
Share on other sites

As far as I understand, shader properties are evaluated as a whole, for the shader, so plugging attributes that are being calculated as the rays are being fired won´t work there.

To make that work, like, if you need to disable displacement for objects that are far from the camera, you will need to use material stylesheets. Look for the first part of the stylesheet webinar with Jeff Wagner, he teaches how to do that!

Share this post


Link to post
Share on other sites

Hi Gui,

I am sorry for late reply. Great, thank you very much for hint, I am going to watch Jeff's stylesheet webinar.

Best wishes

Peter

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×