To illustrate what I tried (and probably failed) to describe above, I added a PushRectOutline to draw the chunk boundaries as rendered into the chunk.
| diff -Naur a/handmade.cpp b/handmade.cpp
--- a/handmade.cpp 2015-04-30 17:55:54.000000000 -0700
+++ b/handmade.cpp 2015-05-03 04:52:32.164578544 -0700
@@ -572,6 +572,7 @@
v2 P = Center + Hadamard(HalfDim, V2(RandomBilateral(&Series), RandomBilateral(&Series)));
PushBitmap(RenderGroup, Stamp, 0.4f, V3(P, 0.0f));
}
+ PushRectOutline(RenderGroup, V3(Center,0.0f), HalfDim, V4(0.0f,0.0f,1.0f,1.0f));
}
}
|
The blue squares should exactly match the chunk size and positions (yellow squares). Notice that the duplication aligns with the blue squares.