Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 944 Bytes

readme.md

File metadata and controls

32 lines (20 loc) · 944 Bytes

cube rain

One of my OpenGL ES 3 based mini project, the goal here is to make rain of cubes with a camera system and diffuse lighting. Sample shows how to set up a scene with camera and moving objects in it all rendered with diffuse based lighting shader program. How to handle user input (mouse and keyboard) to change camera rotation, pan and zoom. How to calculate per triangle model normal vectors to support lighting.

cube rain screenshot

controls

space: freeze time, left mouse: rotate camera, right mouse: pan camera

building

Building is easy, all we need to do is

cd cube_rain
scons -j4

but before we can do it we need to install glfw3, glew, glm and scons libraries.

Note: in Ubuntu 19.10 use

sudo apt install libglfw3-dev libglew-dev libglm-dev scons

command.

After successful build, ./cube_rain command can be used to run sample.