diff options
author | Julian T <julian@jtle.dk> | 2021-02-06 17:27:42 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-06 17:27:42 +0100 |
commit | 0d5e6bd9363d5ed5c4f28174819fc0f5fd9aa586 (patch) | |
tree | f9ecafe7350ad616486e509ed55904295f505f83 /src/render.rs | |
parent | 1e83ea211055eb234b89c69b5d03602e3fcb98fb (diff) |
Reorganized scene module, and fixed bug in sphere intersect
Diffstat (limited to 'src/render.rs')
-rw-r--r-- | src/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render.rs b/src/render.rs index c8a75da..9c9e924 100644 --- a/src/render.rs +++ b/src/render.rs @@ -41,8 +41,8 @@ impl RenderTask { pub fn render(&mut self, ctx: &RenderContext, sampler: &mut dyn Sampler) { let b = self.tile.bounds.clone(); - for x in b.min.x .. b.max.x { - for y in b.min.y .. b.max.y { + for y in b.min.y .. b.max.y { + for x in b.min.x .. b.max.x { self.render_at(ctx, x, y, sampler); } } |