I am using the LWJGL package and am able to create a basic scene and draw shapes (with or without textures), move a custom 'Camera' object and rotate it to render the scene accordingly. However, when it comes to creating shadows, I am at a loss.
I can think of the basic algorithm for creating shadows.
1) Render the scene from the camera's view as if in shadow.
2) Render the scene from the light's view, lighting up the visible part of the scene (maybe darken the scene as it becomes farther away from the light source?).
3) Re-render the scene from the camera's view.
However, I do not know the particular methods for OpenGL (particularly LWJGL). Upon research on this topic, I have only come across tutorials that require all the points and planes of the geometry or contain only partial code that I cannot seem to get working for my own project.
Am I thinking about this correctly? If so, what is (are) the method(s) that I need to use for shading the visible parts of the model (or doing something else)?