aboutsummaryrefslogtreecommitdiff
path: root/src/raycast.zig
diff options
context:
space:
mode:
authortslil clingman <>2021-09-09 23:47:24 -0400
committertslil clingman <>2021-09-09 23:50:18 -0400
commit9e15cb6352c9afc771c41451dea86b93e35349e5 (patch)
treeca3e55b9560869495e1b9aea923ea1e0dd62851b /src/raycast.zig
parentd2f6860430f93291a52d1cdaccf6831cd57be9a5 (diff)
Don't override the skycylinder!
Diffstat (limited to 'src/raycast.zig')
-rw-r--r--src/raycast.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raycast.zig b/src/raycast.zig
index 2b377de..6711cb2 100644
--- a/src/raycast.zig
+++ b/src/raycast.zig
@@ -322,7 +322,7 @@ pub fn Player(PlaneWidth: f32, PlaneHeight: f32) type {
rendered_floors_texture: Texture,
map: level.Map,
) !void {
- var pixels = [_]Colour{Colour.Black} ** (PlaneWidth * PlaneHeight);
+ var pixels = [_]Colour{Colour.fromRGBA(0, 0, 0, 0)} ** (PlaneWidth * PlaneHeight);
// Again, another TERRIBLE hack: we do the same nasty linear
// interpolation trick and for whatever reason the floors look fine.