# glskeleton2 — pa2

OpenGL 3.3 Core Profile skeleton project using modern shader-based rendering.

### What this assignment contains

- **TrackballCamera** — rotating a camera by trackball (drag), dolly in/out (scroll), zoom in/out (Q/E)
- **Phong shading** — directional light and point light, per-fragment Phong shading with material properties
- **Light controls** — keyboard toggles for directional and point lights

## How to play the demo

According to your os, unzip one of the zip files at your preferred location, and then go to the directory where you have uncompress it and play `glskeleton` by double-clicking it!

### Controls

| Input | Action |
|-------|--------|
| Mouse drag | Trackball rotation |
| Scroll | Dolly in / out |
| `Q` / `E` | Zoom in / out |
| `1` / `2` | Point light ON / OFF |
| `3` / `4` | Directional light ON / OFF |
| `W` | Toggle wireframe / fill |
| `N` | Toggle Phong / Normal visualization |
| `ESC` | Quit |