Skip to content
Snippets Groups Projects
Commit 59c71e79 authored by Philip Trettner's avatar Philip Trettner
Browse files

more subtle cases

parent 4c58befe
No related branches found
No related tags found
No related merge requests found
......@@ -509,8 +509,12 @@ void special_use_cases(pm::vertex_attribute<tg::pos3> const& pos)
void subtle_cases(pm::vertex_attribute<tg::pos3> const& pos)
{
// doubles are converted to floats
gv::view(gv::points(pos).point_size_world(0.01));
// pos3-like includes doubles and integer
gv::view(pos.to<tg::dpos3>(), "double positions");
gv::view(pos.to<tg::ipos3>(), "integer positions");
// doubles scalar attributes are converted to floats
gv::view(gv::points(pos).point_size_world(0.01), "double uniform attributes");
}
int main()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment