Procedural Displacement & Rest Position

   2995   0   1
User Avatar
Member
157 posts
Joined: 7月 2005
Offline
I'm using an old procedural displacement shader that does not recognize the rest position attribute.

The default “krinkle” and “dented” shaders behave correctly so I'd like to use them as examples and add the appropriate “rest” code to my mis-behaving shader. I have the .vfl file for my problem shader, but cannot locate the .vfl's for “krinkle” or “dented”. Are these (or similar vfl's) archived anywhere?

Or, can anyone provide (very) simple instructions on how to add this functionality?

Thank you.


EDIT: Just realized I can view the source under the “VEX Code” tab after selecting “Type Properties” of the shader. No worries.

And, if anyone's interested…

added declaration (if that's the correct terminology)…

vector rest=0;

and changed the following line…

PP = wo_space(P);

to…

if (isbound (“rest”))
PP = rest;
else PP = wo_space(P);
Floyd Gillis
  • Quick Links