parent
a895e87a28
commit
e98fe0a01c
@ -43,3 +43,7 @@ fn mesh2d_tangent_local_to_world(world_from_local: mat4x4<f32>, vertex_tangent:
|
|||||||
vertex_tangent.w
|
vertex_tangent.w
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn get_tag(instance_index: u32) -> u32 {
|
||||||
|
return mesh[instance_index].tag;
|
||||||
|
}
|
@ -13,4 +13,5 @@ struct Mesh2d {
|
|||||||
local_from_world_transpose_b: f32,
|
local_from_world_transpose_b: f32,
|
||||||
// 'flags' is a bit field indicating various options. u32 is 32 bits so we have up to 32 options.
|
// 'flags' is a bit field indicating various options. u32 is 32 bits so we have up to 32 options.
|
||||||
flags: u32,
|
flags: u32,
|
||||||
|
tag: u32,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user