Specular component added to lighting.

This commit is contained in:
2016-12-27 15:26:49 -04:00
parent ab427597fe
commit 1b8b382b0e
3 changed files with 3337 additions and 1099 deletions

View File

@@ -22,7 +22,8 @@ public:
float m_a_ratio;
Tracer();
Tracer(int w, int h, float fov);
Tracer(int h, int w, float fov);
vec2 sample_pixel(int i, int j) const;
vec3 trace_ray(Ray & r, vector<Figure *> & f, vector<Light *> & l, unsigned int rec_level) const;