fixed shader bug for stone under dirt stuff on nvidia+mac

This commit is contained in:
Chris Bras 2021-06-01 22:20:00 +02:00
parent 5c33afbc59
commit fb23daa60c

View file

@ -61,7 +61,7 @@ fn main(in: VertexOutput) -> [[location(0)]] vec4<f32> {
texture_array,
texture_sampler,
in.texture_coordinates.xy,
i32(in.texture_coordinates.z)
i32(round(in.texture_coordinates.z))
);
let light_position = vec3<f32>(-100.0, 500.0, -200.0);