Sign in to follow this  
Endar

engines and materials

Recommended Posts

Endar    668
In many 3d engines I've seen Material associated with 3d objects, and I'm a little iffy as to the purpose of a Material class. Does it just start out as an abstract class and is then derived for textures and shaders? I'm thinking textures in particular, since, in my own engine, that's one of the next things on my mental ToDo list.

Share this post


Link to post
Share on other sites
dave    2187
Well a material class would hold information about the appearance of a suface. So in basic engines it would be just a texture or a series of textures and in more advanced engines you would introduce shaders etc. If you have n number of objects in the scene, u can sort them by material etc, since each material object would have a name.

ace

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this