- mkdir build // 创建build文件夹以保留的工程文件。
- cd build // 进入build文件夹。
- cmake .. // 通过提供CMakeLists.txt文件的路径作为参数来运行CMake。
- make −j4 // 通过make编译代码,−j4 表示通过4个内核进行并行化编译。
- ./Rasterizer // 运行代码。
- https://ogldev.org/www/tutorial12/tutorial12.html
- https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/opengl-perspective-projection-matrix
- http://learnwebgl.brown37.net/08_projections/projections_perspective.html
- http://learnwebgl.brown37.net/08_projections/create_perspective/create_perspective.html 线上交互demo
- https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/projection-matrices-what-you-need-to-know-first
- https://zhuanlan.zhihu.com/p/144331875
- https://stackoverflow.com/questions/24441631/how-exactly-does-opengl-do-perspectively-correct-linear-interpolation
- https://www.cs.ucr.edu/~craigs/courses/2018-fall-cs-130/lectures/perspective-correct-interpolation.pdf
- https://byjus.com/snells-law-formula/
- 斯涅尔定律给出了折射程度以及入射角、折射角和给定一对介质的折射率之间的关系。
- The ratio of the sine of the angle of incidence to the sine of the angle of refraction is a constant, for the light of a given colour and for the given pair of media
- 对于给定颜色的光和给定的一对介质,入射角的正弦与折射角的正弦的比率是一个常数。
- http://www.patarnott.com/atms749/pdf/FresnelEquations.pdf
- https://zh.wikipedia.org/wiki/%E8%8F%B2%E6%B6%85%E8%80%B3%E6%96%B9%E7%A8%8B
- 菲涅耳方程(或称菲涅耳条件)是由法国物理学家奥古斯丁·菲涅耳推导出的一组光学方程,用於描述光在两种不同折射率的介质中传播时的反射和折射。方程中所描述的反射因此还被称作“菲涅耳反射”。