软光栅化渲染

Target: OBJ model, Phong, Texture, Material

Rewritten in Jai

https://github.com/qiekn/jai-software-rasterizer

June 19, 2026 4:22 AM (GMT+8)

说明:中英文混杂,怎么方便怎么来! Note: I will write notes in Chinese, because my English is not good enough. (But I will polish those notes to English at the final phase.)

Write colors to .ppm

Bresenham’s line drawing algorithm

Triangle rasterization

Barycentric coordinates (质心坐标)

Hidden faces removal

Naive camera handling

Refactor and Phong shading

Smooth shading & Textures

Textures

Original C++ Software Rasterization Renderer

Tiny renderer or how OpenGL works: software rendering in 500 lines of code

The task is as follows: using no third-party libraries (especially graphics-related ones), we will generate an image like these:

image.png

image.png

https://github.com/qiekn/tinyrenderer