Jump to content
  • Advertisement
Sign in to follow this  
Kalagaraz

Water Shader help

This topic is 4215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to create a simple water shader for a game of mine, but don't really know how to approach the issue as I'm new to shaders. I'm going for 2D game with a 3Dish look and thought it would be cool to add a 3D water plane infront of the 2D player area. Here is what I go so far (very horrible textures, just testing with them). http://img329.imageshack.us/my.php?image=successei6.jpg The large bottom part is actually a X,Z quad with 4 vertices, the top sprite is just a screen aligned quad using XNA's SpriteBatch. I want the bottom quad to be a water plane with just simple waves. Where I'm confused at, is I don't know if I just use a simple 4 vertex quad and fake the ripples, waves etc... with just a pixel shader. Or of I make it like 1000 vertices, and acctually make the waves etc... As soon as I get that done, I plan on adding reflections by rendering all the spriteBatch sprites to a render target, and then flipping them and adding to the bottom quad if that effects whether I should use the vertex or pixel shader method. Thanks in advanced for any help.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!