2D_Lighting is a program that uses SFML to render dynamic lighting
- SFML 2.5.1 must be linked
In CMakeLists.txt file (file in the same place as other .h and .cpp files) you must set SFML_DIR as path of folder that contains SFMLConfig.cmake file.
set(SFML_DIR "../../SFML-2.5.1/lib/cmake/SFML")
"white_glow.png" file must be added to folder that contains executable!
- By clicking and releasing left mouse button you can create red background pieces on screen. In order to set a size of a background piece you need to drag your mouse after clicking left mouse button.
- By clicking right mouse button program will automaticly create a 100x100 sized obstacle on screen.
- You can also make changes like changing the color of obstacles and backgrounds, changing the size of obstacles or changing the color of the light source by editing 2D Lighting.cpp file.