Jump to content
  • Advertisement
Sign in to follow this  
godsenddeath

a shader's place?

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

hey, i'm new to shaders, and i'm curious, should every object carry it's own effect object, setting it's effect when it's rendered? or should there be a global effect file with all the techniques?

Share this post


Link to post
Share on other sites
Advertisement
I'm not too familiar with the FX framework (which I assume you meant when you said effects file), but I'm fairly certain you can do either.

Personally I would have everything in separate files, or at least group shaders logically into files. This makes shaders easier to access (instead of sifting through one big file) and easier to read.

It's similar to breaking up your code into c/cpp files. You wouldn't put all your code into one file (unless it was a small app perhaps).

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!