Project 3 - Shadows


Blinn-Phong Shading


simple_blinn1 box_blinn1

Case 1: specular component is ignored when N.Dot(L) is negative

simple_blinn2 box_blinn2

Case 2: specular component is not ignored when N.Dot(L) is negative


Phong Shading


simple_phong1 box_phong1

Case 1: specular component is ignored when N.Dot(L) is negative

simple_phong2 box_phong2

Case 2: specular component is not ignored when N.Dot(L) is negative


Diffuse Image


simple_diffuse box_diffuse

Normalized z-buffer Image


simple_zbuffer box_zbuffer

Normal Map


simple_normal box_normal

Light Vector Map (PointLight)


simple_light box_light

Halfway Vector Map


simple_halfway box_halfway

Reflection Vector Map


simple_reflection box_reflection

Rendering time was 0.02 sec (multi-threading)



Hardware Configuration

Processor : Intel(R) Core(TM) i5-5200U CPU @ 2.29GHz x 4
Graphics : Intel(R) HD Graphics 5500 (Broadwell GT2)
OS : Ubuntu 18.04.3 LTS
OS type : 64-bit
RAM : 4GB