[GLSL shader question 1]Shadows

My fault, I was not too clear :smiley:

Thanks, hope I can get it figured out.

K9Crunch: It sounds like you are missing the model matrix in your calculation. This is the matrix that describes the current transform state of an object (or model). The “ModelView” matrix you are using probably only has the view transform in it.

This should be the matrix you are missing:
http://www.blender.org/api/blender_python_api_2_76_1/bge.types.KX_GameObject.html#bge.types.KX_GameObject.worldTransform

Thanks, its a step closer but not in the right direction. Using the objects transform sort of works, but the shader will only work for one object at a time.

Why it only works for one Object? Do you still have the file? I would like to test it and take a look at the code.