Jump to content
  • Advertisement
Sign in to follow this  
Alundra

GPU Particle Update

This topic is 1460 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,

Is it a good way to have one compute shader for each particle module (velocity, color .....) which is called in an update function ?

For curve generate the texture 1D when the curve changes.

Thanks

Edited by Alundra

Share this post


Link to post
Share on other sites
Advertisement

It's probably better to have one compute shader that does everything, possibly with conditional compilation if needed. The old "ubershader" approach, basically.

Share this post


Link to post
Share on other sites

Using that no one particle affector can be added without change the engine directly.

Is it really bad to have one compute shader by particle affector ?

Share this post


Link to post
Share on other sites

Is it really bad to have one compute shader by particle affector ?

Try it and find out. It's probably slightly more optimal to use a single shader... but sometimes it's a better choice to waste a bit of performance to gain a bit of flexibility.

Using that no one particle affector can be added without change the engine directly.

Shaders should be data files like a model or a texture. You definitely should be able to edit shaders without changing the engine... Ideally you should be able to edit shaders while the game is still running and see live results!

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!