Original Post
I, before asking any questions, i would like to thank everyone posting on this forum. It has really helpful since I started my OpenGL project.
I have a problem with my glsl shader. In fact I just don't know how to prevent any of it to happend. As you can see on the picture, the light from the red spotlight is "going through" the table.
[attachment=8239:example.jpg]
How can i test is the path between the pixel being drawn and the light source is "free".
Thank you
I have a problem with my glsl shader. In fact I just don't know how to prevent any of it to happend. As you can see on the picture, the light from the red spotlight is "going through" the table.
[attachment=8239:example.jpg]
How can i test is the path between the pixel being drawn and the light source is "free".
Thank you