Physically Based Rendering (PBR) shader
A downloadable project for Windows
Created in 2019 with C++ and OpenGL for the Computer Graphics module at Edinburgh Napier. To run, download and extract the contents of the zip, then execute "pbr.exe".
Controls for the application are listed below:
EFFECTS
F1 - Basic Texturing
F2 - Blinn-Phong shading
F3 - Physically Based Rendering (PBR)
F4 - PBR Demo Spheres only - removes scenery and replaces it with 6 spheres to showcase PBR rendering
POST PROCESSING
F5 - Blur, sharpen and edge detection with the Blinn-Phong shader
F6 - Pixelation with the Blinn-Phong shader
GAUSSIAN BLUR, SHARPEN AND EDGE CONTROLS - CAN ONLY BE USED WHEN THE POST-PROCESSING EFFECT IS SELECTED (F5)
Keypad 1 - Gaussian Blur
Keypad 2 - Sharpen
Keypad 3 - Edge Detection
PIXELATION CONTROLS
Up Arrow - Increase pixelation amount (limited to 50.0f max)
Down Arrow - Decrease pixelation amount (limited to 4.0f min)
CAMERA CONTROLS
Q - Enable controllable first person camera
1 - Set camera, far left corner
2 - Set camera, far right corner
3 - Set camera, near left corner
4 - Set camera, near right corner
5 - Set camera, near back wall
6 - Chase camera on brick ball
FIRST PERSON MOVEMENT
W - Move Forward
S - Move Backwards
A - Strafe Left
D - Strafe Right
Mouse - Look around
LIGHT CONTROLS
7 - Multicoloured lights
8 - Hotline Miami Lights (except for spot light)
9 - Lights On
0 - All lights off, except for spot light
F9 - Increase lights
F10 - Dim Lights
SHADOW CONTROLS
X - Enable Shadows
C - Disable Shadows
NORMAL CONTROLS
N - Hide normals from inner scene geometry (excluding tanks)
M - View normals on inner scene geometry (excluding tanks)
PBR DEMO CONTROLS - FOR USE WHEN THE PBR DEMO SPHERES OPTION IS SELECTED (F4)
Y - Combined demo with basic textures
U - Roughness demo
I - Metallic demo
O - AO demo
P - Various PBR textures on spheres
SCREEN CONTROLS
F - Set screen to 1280 x 720
G - Set screen to 1920 x 1080
H - Set screen to 800 x 600
J - Set screen to a large borderless window