Skip to content

dmitrii-ubskii/minecraft-in-a-week

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft in a week

Day 1

day 01
  • Boilerplate for setting up OpenGL context;

  • drawing and texturing a cube;

  • camera movement (keyboard only).

Day 2

day 02
  • First steps in world generation;

  • camera movement & mouselook;

  • basic lighting and distance fog.

Day 3

day 03
  • Infinite world generation;

  • 3D mesh handling class.

Day 4

day 04
  • Assembling a chunk mesh;

  • smoother terrain;

  • shadows;

  • frustum culling (a bad approximation of);

  • casting a ray from the camera to find the targeted block;

  • block placing and breaking.

Day 5

day 05
  • Water!

  • Translucency support — separate opaque and translucent meshes for each chunk;

  • only draw faces that aren’t obstructed by other chunks.

Day 6

day 06
  • Trees!

  • Some miscellaneous cleanup.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published