RenderHelp
RenderHelp copied to clipboard
:zap: 可编程渲染管线实现,帮助初学者学习渲染
请问深度缓存为什么不是 z/w 呢? 是我理解有误,还是有什么讲究呢?
为什么转换代码是 `inline static Vec4f vector_from_color(uint32_t rgba) { Vec4f out; out.r = ((rgba >> 16) & 0xff) / 255.0f; out.g = ((rgba >> 8) & 0xff) / 255.0f; out.b = ((rgba...
## 复现代码 放大一个checker texture并输出图片: ```c++ const int N = 64; Bitmap texture(N, N); for (int y = 0; y < N; ++y) for (int x = 0; x < N;...
 考虑这个三角形,左下角是 (0, 0), 右下角 (3.0) 上边 (1.5, 5),从浮点数边来看,上边的点是包括的,中心被覆盖 如果舍入到整数坐标,那三个点的坐标(0, 0) (3.0) (2, 5) 显然这个时候像素(1,5)不在三角形内了