Jump to content

Ocean Gradient Shader


Recommended Posts

Hey guys , 

Im working on a beach wave project and its very big one , i was looking in forum about how to make my far water looking darker than the near from beach sand , 

but i did not find any good help about it , 

 

So i really wish if any one can helping me get this shader.

 

Thanks guys. 

Link to comment
Share on other sites

You could put some attribute on your water points the contains their distance from the camera.

Promote the attribute to a detail attribute, taking the Max value.

Promote the attribute to a detail attribute, taking the Min Value.

 

Take the Min/Max values and promote them back down to point attributes.

In VOPs, normalize the distance to the Min and Max values and use that as a gradient. Bias to taste.

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