trandzik Posted April 25, 2018 Share Posted April 25, 2018 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 Quote Link to comment Share on other sites More sharing options...
gui Posted April 26, 2018 Share Posted April 26, 2018 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! Quote Link to comment Share on other sites More sharing options...
trandzik Posted May 2, 2018 Author Share Posted May 2, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.