-, max_entities(16)
-, chunk_range(4) {
- EntityModel::Buffer buf;
- {
- CuboidShape shape({{ -0.25f, -0.5f, -0.25f }, { 0.25f, 0.5f, 0.25f }});
- shape.Vertices(buf, 1.0f);
- buf.colors.resize(shape.VertexCount(), { 1.0f, 1.0f, 0.0f });
- models[0].Update(buf);
- }
- {
- CuboidShape shape({{ -0.5f, -0.25f, -0.5f }, { 0.5f, 0.25f, 0.5f }});
- buf.Clear();
- shape.Vertices(buf, 2.0f);
- buf.colors.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f });
- models[1].Update(buf);
- }
- {
- StairShape shape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f }}, { 0.4f, 0.4f });
- buf.Clear();
- shape.Vertices(buf, 3.0f);
- buf.colors.resize(shape.VertexCount(), { 1.0f, 0.0f, 1.0f });
- models[2].Update(buf);
- }
-