Added modelview matrix.

This commit is contained in:
2017-01-02 02:39:24 -04:00
parent e9986a923f
commit a0381b4fff
4 changed files with 9841 additions and 16233 deletions

View File

@@ -57,13 +57,13 @@ vec3 Tracer::trace_ray(Ray & r, vector<Figure *> & v_figures, vector<Light *> &
float t, _t;
Figure * _f;
vec3 n, color, i_pos, ref;
Ray sr, rr;
Ray mv_r, sr, rr;
bool vis;
float kr;
t = numeric_limits<float>::max();
_f = NULL;
for (size_t f = 0; f < v_figures.size(); f++) {
if (v_figures[f]->intersect(r, _t) && _t < t) {
t = _t;