Double-click the square to trigger drawing
Part I: Raytracing
Version 1: Send out rays and return after getting the color of the intersected object. Solid-colored objects will be obtained.
Version 2: Add light sources. At this time, the spheres are no longer solid-colored. Add light sources one by one.
Version 3: Specular reflection effect.
Version 4: Add shadow effect.
Version 5: Mirror within mirror effect.
Version 6: Change the position and orientation of the camera.
Part II: Rasterization
Version 1: Draw a straight line based on a linear function.
Version 2: Optimize and improve drawing methods.
Draw a solid-colored triangle and fill the triangle with horizontally line segments.
Draw a gradient-colored triangle. Based on the line segment interpolation, the color is also interpolated.
Perspective Projection.
A cube made of triangular wireframe.
Add a model copy.
Transform the model and camera.
Clipping: saving computational resources by discarding and splitting triangles.
Adding depth testing.
Remove faces with their back faces facing us to reduce drawing.
Shadowing.
Texture Mapping.