Advertisement Jump to content
Sign in to follow this  
godsenddeath

a shader's place?

This topic is 3721 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!