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.

Okay, I have learned that simply passing the entity x, y, and z values is resulting in the wrong position for the light. Using gl_LightSource[0].position does work, but I'd like to understand what the difference is. The built in light source position value is a vec4 instead of a vec3, for instance.

Does anyone know how this stuff works or where I can find a good GLSL tutorial? The ones I've found so far have been lacking...