From fb23daa60c825fb5340f4c9953981a1d83509f56 Mon Sep 17 00:00:00 2001 From: Chris Bras Date: Tue, 1 Jun 2021 22:20:00 +0200 Subject: [PATCH] fixed shader bug for stone under dirt stuff on nvidia+mac --- src/shaders/world.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shaders/world.wgsl b/src/shaders/world.wgsl index 71be90e..9cb550f 100644 --- a/src/shaders/world.wgsl +++ b/src/shaders/world.wgsl @@ -61,7 +61,7 @@ fn main(in: VertexOutput) -> [[location(0)]] vec4 { texture_array, texture_sampler, in.texture_coordinates.xy, - i32(in.texture_coordinates.z) + i32(round(in.texture_coordinates.z)) ); let light_position = vec3(-100.0, 500.0, -200.0);