Would this be the correct way to implement "models" ```rs
package lvo_models
LVO_Model :: struct {
vertices: [][]f32,
tex_coords: [][]f32,
shading: [][]f32,
is_cube: b32,
transparent: b32,
}
```rs
package lvo_models
LVO_CUBE_MODEL :: LVO_Model {
is_cube = true,
transparent = false,
vertices = {
{0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5},
//....
}
// ...tex coords, and shading values below this
}
i am retrieving the data as such
create_lvo_block_type :: proc(
name := "unknown",
texture_manager: ^LVO_Texture_Manager,
block_face_textures: map[string]string,
model: models.LVO_Model = models.LVO_CUBE_MODEL,
) -> LVO_Block_Type {
block_type := LVO_Block_Type {
name = name,
vertex_positions = slice.clone(model.vertices),
tex_coords = slice.clone(model.tex_coords),
shading_values = slice.clone(model.shading),
transparent = model.transparent,
is_cube = model.is_cube,
}
// set block faces, etc...
return block_type
}