Skip to content
Snippets Groups Projects
Commit cfe6aad1 authored by Yoel's avatar Yoel
Browse files

Changes from doubles to floats in 4 instances

parent f0f24511
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ Vec3 GridSampler::color(float x, float y) const { ...@@ -8,8 +8,8 @@ Vec3 GridSampler::color(float x, float y) const {
Vec3 color(0, 0, 0); Vec3 color(0, 0, 0);
for (int xi = 0; xi < n; xi++) { for (int xi = 0; xi < n; xi++) {
for (int yi = 0; yi < n; yi++) { for (int yi = 0; yi < n; yi++) {
double xs = x + (xi + 0.5) / n; float xs = x + (xi + 0.5) / n;
double ys = y + (yi + 0.5) / n; float ys = y + (yi + 0.5) / n;
color = color + sampler->color(xs, ys); color = color + sampler->color(xs, ys);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment