How Set the mesh's Color...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ssuny1007
Posts: 10
Joined: Mon Jul 23, 2007 2:59 am

How Set the mesh's Color...

Post by ssuny1007 »

i wanna mesh's Color to Change..

it means.. Original mesh's color(with Texture) ... (255,255,255,255)

to Red Mesh (255,255,0,0) ...

mm Understand?? sorry.. i weak English..

where set the color??
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

virtual void setVertexColorAlpha(scene::IMesh* mesh, s32 alpha) const;

This is a method in the MeshManipulator class. You could also do this manually by traversing the mesh buffers. But with just one color this method is the way to go.
Post Reply