I've created a very small scene with almost my(I've used some tutorials online for syntax and some basic "game" rules) very first shader. The scene contains 3 meshes: 2 lanterns and one base(everything is loaded from fbx. Fbx created with Blender). Also XNA was used for the scene creating. OK. Here is the small problem: since the scene contains 3 different meshes they a drawn separately and because of that the light spot can go under the mesh, like this:
So, my question is: How can be done so that the light spot also goes onto the lantern and I still could keep three separate meshes? Something like on the picture below(I've drawn it in the paint):
Thank you for your answers beforehand.
Edited by DmitryNik, 09 November 2012 - 05:43 AM.