Point Light Shadowmapping :: GLFW + OpenGL 3.2

Channel:
Subscribers:
1,090
Published on ● Video Link: https://www.youtube.com/watch?v=NJhOYnlU2_U



Duration: 2:18
1,987 views
30


Draw a scene with multiple dynamic shadow-casting point lights.

I have been following a couple of OpenGL tutorials and spent an evening trying to write a program that generates shadow maps from an arbitrary number of point lights. Here is the result, plus an example of how to add another light. Source linked below.

The project was written in C++14 with GLFW, GLEW, GLM, and SOIL.

The number of point lights is currently capped at 4 in camera.fs. You can change it to a higher number, but remember to add another line, as per the comment on line 58 in main.cpp.

Source code is available here:
https://github.com/saucecode/opengl-demos/tree/master/pointShadowMaps

Tutorials used:
https://learnopen.gl/
https://open.gl/

This was run on a GTX 650 Ti with 1GB VRAM. The process consumed 28MB of system memory.

Please direct your cat photos to cahill.julian@gmail.com.

https://rawr.nz







Tags:
opengl
shadows
shadow
mapping
shadowmapping
c++
glfw
modern opengl
point
light
lighting
opengl 3
source
code
programming
linux
shaders