Skip to content

Latest commit

 

History

History
51 lines (46 loc) · 1.67 KB

README_EN.md

File metadata and controls

51 lines (46 loc) · 1.67 KB

tiny-renderer

  • Basic math library
  • Bresenham line drawing algorithm
  • Cohen-Sutherland line clipping algorithm
  • glTF model loading
  • Model/view/projection transformation
  • Back-face culling
  • View frustum culling
  • Homogeneous space clipping
  • Depth testing
  • Vertex and fragment shaders
  • Barycentric coordinate interpolation
  • Perspective correction
  • Blinn–Phong reflection model
  • Texture mapping
  • Camera control

Get started

  1. Bresenham line drawing algorithm
cargo run --example bresenham_line
  1. Rendering
cargo run --example rendering

Control

  • F1 Toggle wireframe rendering
  • F2 Toggle vertex color interpolation
  • F3 Toggle fragment shading
  • F4 Toggle projection mode
  • F5 Switch model
  • W/A/S/D/Q/E Control camera movement

Screenshots

Video: YouTube

bresenham_line wireframe_rendering vertex_color_interpolation texture_mapping blinn_phong_texture blinn_phong_color

References