top of page

TECH ART & GRAPHICS

LIGHTING MODELS

Per-pixel Phong versus per-vertex Gouraud shading on Suzanne

Phong, Blinn-Phong and per-vertex Gouraud shading written from scratch in GLSL for a WebGL renderer. Blinn-Phong swaps the reflection vector for the light/view half vector, giving broader highlights with a softer falloff. Gouraud is cheaper but loses highlights smaller than the triangle spacing.

Tools: GLSL, WebGL, JavaScript

DEBUG VISUALIZATION

Surface normals visualized as color, with hue from direction and saturation from tilt

Shaders that show what the GPU is working with: surface normals mapped to HSV color, depth linearized back out of the non-linear depth buffer, and the raw mesh as points and wireframe. The kind of views used to diagnose lighting and geometry bugs at a glance.​

Tools: GLSL, WebGL, JavaScript

STYLIZED SHADING

Cel-shaded Suzanne with a mouse-driven light, cyan-to-magenta color wave and reactive grid overlay

A cel shader that quantizes lighting into four bands with view-angle edge darkening, layered with a mouse-driven effect: the light follows the cursor, a cyan-magenta color wave falls off around the pointer and a grid overlay glows nearby, all in a single fragment pass.

Tools: GLSL, WebGL, JavaScript

TEXTURES & SKYBOXES

Chrome sphere reflecting a real cubemap photographed on the Queen Mary campus

UV-mapped texturing with mipmapped filtering, a cubemap skybox, and reflection mapping using real photo cubemaps shot around the QMUL campus. Post effects in the fragment shader include gamma correction, alpha from luminance and a radial vignette.

Tools: GLSL, WebGL, JavaScript

bottom of page