From 6f887d475d32f32ebdd1f914f5067031b12d025d Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Mon, 15 May 2023 18:14:14 +0200 Subject: Frustum culling --- src/gfx/map/mesh.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gfx/map/mesh.rs') diff --git a/src/gfx/map/mesh.rs b/src/gfx/map/mesh.rs index 3f8dcbc..51bf9f6 100644 --- a/src/gfx/map/mesh.rs +++ b/src/gfx/map/mesh.rs @@ -57,7 +57,7 @@ pub(super) fn create_mesh( } let light = match def.param1_type { - Param1Type::Light => block.param_1[index] as f32 / 15.0, + Param1Type::Light => block.param_1[index] as f32 / 15.0, // FIXME _ => 1.0, }; @@ -81,7 +81,7 @@ pub(super) fn create_mesh( let mut add_vertex = |vertex: (usize, &([f32; 3], [f32; 2]))| { buffer.vertices.push(Vertex { - pos: array(|i| pos[i] as f32 - 8.5 + vertex.1 .0[i]), + pos: array(|i| pos[i] as f32 + vertex.1 .0[i]), tex_coords: texture[vertex.0], light, }); -- cgit v1.2.3