Today I started with all this GLSL stuff because I’ve been advised to do so, in order to achieve better effects in a program.
The main reason is because I want a sphere (which simulates a metal ball) to reflect other objects around it. I also want to have shadows, I read something about shadow maps.
The thing is I’m a newbie at this, so I hope anyone of you can help me out with this, answering this questions:
- How can I reflect other objects in the scene?
- How can I calculate shadows?
Thanks in advance