Skip to content
W298 edited this page Feb 9, 2023 · 19 revisions

2D Text

Source

Transparency

Source

Basic Shading

Source

Model Loading

Source

Keyboard & Mouse input

A Textured Cube

Source

A Colored Cube

Source

  • Random color (Each launch)
  • Color depending on vertex position (-1.0f ~ 1.0f => 0 ~ 1.0f)
  • Random color (Each frame)

Matrices

Source

  • FOV: 45deg
  • FOV: 90deg
  • FOV: 45deg, translate to vec3(2, 1, 0), scale to vec3(0.5f, 0.5f, 0.5f)

Red Triangle

Source