Experience realistic light behavior in a 2D environment where a point source of light—controlled by the mouse cursor—illuminates the surroundings. Obstacles in the environment cast shadows, dynamically blocking light and creating an interplay of illuminated and dark areas. Additionally, a sprite is placed on the window, with portions of it changing based on visibility from the light source, enhancing the visual realism. Built using C++ and SFML, this program offers an immersive demonstration of how light interacts with opaque objects and dynamically affects its surroundings in a 2D world.
-
Notifications
You must be signed in to change notification settings - Fork 0
Simulating realistic 2D light behavior using C++ and SFML, where a point light source—controlled by the mouse—illuminates the environment. Obstacles cast dynamic shadows, and multiple sprites react to light exposure for enhanced visual realism.
Bishesh-Khanal/ImageTracing
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simulating realistic 2D light behavior using C++ and SFML, where a point light source—controlled by the mouse—illuminates the environment. Obstacles cast dynamic shadows, and multiple sprites react to light exposure for enhanced visual realism.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published