render-py
render-py copied to clipboard
add basic lighting with normal line
The original code regards the up of the faces as normal lines, the render result is not good. We can read the vertices' normal lines from the model file and get the fragments' normal lines during rasterization.
