cleanup for mesh example
This commit is contained in:
parent
b564c2b87c
commit
43d5ceabb8
1 changed files with 4 additions and 5 deletions
|
@ -23,11 +23,10 @@ auto main() -> int {
|
||||||
.topology = pw::primitives::topology_type::triangle_list
|
.topology = pw::primitives::topology_type::triangle_list
|
||||||
};
|
};
|
||||||
|
|
||||||
auto mesh = pw::mesh{.geometry = geom};
|
auto mesh = pw::mesh{
|
||||||
|
.geometry = geom,
|
||||||
mesh.attributes.emplace_back(
|
.attributes = {{.type = pw::attribute::normals,
|
||||||
pw::attribute{.type = pw::attribute::normals,
|
.data = std::vector{pw::vector{1.2f, 2.4f, 4.8f}}}}};
|
||||||
.data = std::vector{pw::vector{1.2f, 2.4f, 4.8f}}});
|
|
||||||
|
|
||||||
for (auto i : geom.indices) {
|
for (auto i : geom.indices) {
|
||||||
std::print("vertex[{}]({})\n", i, geom.vertices[i]);
|
std::print("vertex[{}]({})\n", i, geom.vertices[i]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue