Texture Matrix

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
constchar*
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Texture Matrix

Post by constchar* »

Hey!

I need to set the texture position and size on a billboard from a
texture sized 256x256 since multiple sprites are on one material
so I tried playing around with the texture matrix but unfortunately
it seems to screw up all the other textures in my scene and causes
the program to crash on shutdown.

The structure that defines the sprite has an X, Y, Width and Height fields.

So how do I accomplish transforming the texture to the size and position I need?

Thanks!
Post Reply