Commit 0b42e4f
authored
Make the colormap behavior in the viskores ANARI device match helide (vistle#535)
- Ensure m_inTransform and m_inOffset are applied in Image1DSampler (through a new worklet).
- Add m_useValueRange and m_valueRange to the viskores device's Geometry class, so the user can set the range used for the color map themselves
(more detailed explanations see PR)1 parent fa531cf commit 0b42e4f
3 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
- viskores/rendering/anari-device/CMakeLists.txt+1-1
- viskores/rendering/anari-device/scene/surface/geometry/Cylinder.cpp+1-1
- viskores/rendering/anari-device/scene/surface/geometry/Geometry.cpp+14
- viskores/rendering/anari-device/scene/surface/geometry/Geometry.h+6
- viskores/rendering/anari-device/scene/surface/geometry/Quad.cpp+1-1
- viskores/rendering/anari-device/scene/surface/geometry/Sphere.cpp+1-1
- viskores/rendering/anari-device/scene/surface/geometry/Triangle.cpp+1-1
- viskores/rendering/anari-device/scene/surface/material/sampler/Image1DSampler.cpp+50-4
- viskores/rendering/anari-device/scene/surface/material/sampler/Image1DSampler.h+2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
| 372 | + | |
372 | 373 | | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
0 commit comments