glShear
BlitzMax Forums/OpenGL Module/glShear| 
 | ||
| okay put your hands up all those who thought it existed! Which elements of the gl matrix do I need to do what to? basically I'm implementing a quick and nasty shadow, so a want to skew the model depending on the light position before I scale 1,0,1 | 
| 
 | ||
| Draw it normal, grab it, draw it on a textured quad that's distorted ? | 
| 
 | ||
| its easier just to draw the 3d model with a shear matrix and then scale it flat I've been doing other stuff so not had time to implement a shear matrix, has anyone else implemented a shear matrix? | 
| 
 | ||
| You could cheat like I did have nab the excellent irrlicht matrix lib. It has shadow functions build in for shadow planes. I think that's what you're after. | 
| 
 | ||
| i take a look thanks for the heads up! |