Extended examples
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
206 216 gv::view(pos, gv::mapping(vdata).linear(tg::color3::black, tg::color3::red, 0.1f, 0.3f), "vertex data"); 207 217 208 218 // map face data to red (small) to green (big) from 0.05 .. 0.5 (data outside this range is clamped) 209 gv::view(pos, gv::mapping(fdata).linear(tg::color3::red, tg::color3::green, 0.05f, 0.5f).clamped(), "face data"); 219 gv::view(pos, gv::mapping(fdata).linear(tg::color3::red, tg::color3::green, 0.00001f, 0.001f).clamped(), "face data"); The values in
fdata
are roughly in the region between 0.00001 and 0.001, so that the original line displayed a completely red model and the new line shows suzanne with red ears, eyes and mouth and green skull, with gradients in between as intendet. That's at least the case on my machine, is that different for you?I didn't notice the comment, that should of course be changed accordingly.
Please register or sign in to reply