WebGL Project

Spotlights on lit and reflective surfaces

This is an exam project written in WebGL 2, using JavaScript and the OpenGL Shader Language (GLSL ES 3.0). The project consists of a small scene depicting an outdoor park with a few sculptures, some street lights and pine trees. It’s possible to walk around the scene, using first person controls.

The project showcases a few different shading techniques, such as texture mapping, diffuse-, ambient- and specular lighting and reflections using cube maps.

Click the screen to take control with the mouse and move around with WASD. If some textures are missing/black, reload the page. Note: Not optimized for mobile platforms.