Jump to content
  • Advertisement
Sign in to follow this  
Omikron1983

HLSL fountain effect

This topic is 4200 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

Hi, I have to write a fountain effect using RenderMonkey and HLSL. In the center of a quad there is a fountain and falling water drops create ripples on water. I've written a particle shader - quads that subordinate to the Newton equatations and shader for water ripples. The problem is how to combine those two effects ? i.e. how to show where drops should create a ripple on a surface. I was thinking about rendering to texture places where the quads hit the water surface. But in this case, vertex shader will write all quads to texture not only those that hit water. Can I omit some of the vertices, or write them outside of a texure ? Thanks Omi

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Omikron1983
Can I omit some of the vertices, or write them outside of a texure ?

You can use the clip hlsl instric to "cancel" a pixel when it's being drawn.

Share this post


Link to post
Share on other sites
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!