Fix for current firefox nightly

This commit is contained in:
Maximilian Ammann 2021-12-29 10:50:36 +01:00
parent 35e18937a0
commit 5c35c6b5fa

View File

@ -24,12 +24,12 @@ fn main(
[[location(7)]] debug_color: vec4<f32>,
[[builtin(instance_index)]] instance_idx: u32 // instance_index is used when we have multiple instances of the same "object"
) -> VertexOutput {
var z = 0.0;
let z = 0.0;
var m: mat3x3<f32> = mat3x3<f32>(
target_width, 0.0, 0.0,
0.0, target_height, 0.0,
0.0, 0.0, 1.0
vec3<f32>(target_width, 0.0, 0.0),
vec3<f32>(0.0, target_height, 0.0),
vec3<f32>(0.0, 0.0, 1.0)
);
var world_pos_3d = vec3<f32>(a_position + mask_offset, z);