imike901224's picture

Shadow mapping in OpenTK

I want to know how to use Shadow mapping in OpenTK. Can you give me a simple example on that? I am new here and I need some help. Thanks a lot!


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Unfortunately, shadow mapping is anything but simple to implement. The concept is that you render your scene from the viewpoint of the light source into a depth cubemap, then render your scene from the camera viewpoint using the depth cubemap to detect shadowed areas. You need to know how to use cubemaps, how to render to textures (framebuffers, renderbuffers) and how to write shaders.

These tutorials are an excellent starting point: