| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project illustrates light rendering in 2D with C++.
All samples output PNGs with svpng.
I learn a lot from miloyip's project light2d, and try to do the same thing with C++.
The main idea is similar with milo's, following are the differences:
With the use of SDF, normal calculation can be written in less code , and easier to understand. While in my project, normals and intersect points are all calculated analytically. Maybe not so intuitive. C++ polymorphism is great help to calculate different kinds of normals and intersect points.
an example of reflection
| Back | FazBrowse Home | New Git URL |