The Shader example...

BlitzMax Modules Forums/MiniB3D/The Shader example...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In OpenGL and DX anything is a Vec4
For the reason that all matrices are 4x4 matrices.

the forth is w and normally 1 unless you use the position to save quaternions in there instead of vectors.

as you seem to lack the 3d programming basics, understanding them before trying to do shader (higher end math) might be a usefull idea.