games101_homework

compile

  • mkdir build // 创建build文件夹以保留的工程文件。
  • cd build // 进入build文件夹。
  • cmake .. // 通过提供CMakeLists.txt文件的路径作为参数来运行CMake。
  • make −j4 // 通过make编译代码,−j4 表示通过4个内核进行并行化编译。
  • ./Rasterizer // 运行代码。

fov and aspect ratio

透视矫正插值

interpolated_shadingcoords

Learn opengl

Snell’s Law

  • 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
  • 对于给定颜色的光和给定的一对介质,入射角的正弦与折射角的正弦的比率是一个常数。

Fresnel Equations

Ray-Tracing: Generating Camera Rays

Normal mapping

https://learnopengl.com/Advanced-Lighting/Normal-Mapping