Jump to content

VOP question


athomas

Recommended Posts

I have a problem with a water shader. I'm trying to do everything in VOP's.

I'm displacing a basic grid and want to add foam to the waves based on the height of the waves.

Now how can I get my height from the displacement into the surface shader and then compare this with a given value, say if waves are heigher then 2 create foam. The if then loop doesn't seem to do it for me (using two if VOP's).

Also is there a similar function in VOP's to the step function from renderman?

Cheers

Andre

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...