Jump to content

Controlling shader properties


trandzik

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

Link to comment
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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...