2012/07/17

12/07/17 Materials

I've successfully manage to create different materials for the faces, each face has its own color component based on the colors of the materials they have applied. Not the problem is that I don't know how to discriminate if a face has a texture applied or not,  right now this renders all faces with the first material's texture, therefore if the face 2 has a different material it will multiply its color to the texture of the first, if it doesn't have a texture all faces will have their correct colors without textures, and so on.

So what is next is to load more than one texture and then discriminate if a face has a texture, and if it does apply its corresponding texture, not only the first material's.

First material have texture applied

First material does not have a texture


Yo soy Alberto y ese ha sido mi post. Happy Codding!

No hay comentarios: