Module builders

Source

Functionsยง

build_cube
Creates a cube
build_floor
build_from_file
build_from_obj_buf
Panics
build_grid
build_plane
Creates a plane based on a center and normal. If transform_cpu_data is true, then the vertices of the plane are actually translated and rotated on the CPU. Otherwise the transformation is done on the GPU using the model matrix. This is useful when creating light planes for example when we want the model matrix to be consistent with the orientation of the light and therefore we set transform_cpu_data=false