vtk-m2/vtkm/rendering/raytracing
Kenneth Moreland 02e37f4bc5 Fix an issue with casting a float to an int too soon
There was a case of bad casting where a Float32 that should be in the
range between 0 and 1 was cast to an Id and then multiplied by the size
of an array. The intention is to get a proportional index into the
array, but because the float was cast to an int first, you get either
the first or last index.

Instead, first cast the size of the array to a Float32, multiply it by
the fraction, and then cast back to an Id. That should give the desired
effect.
2016-11-22 15:34:56 -07:00
..
BoundingVolumeHierarchy.h Remove exports for header-only functions/methods 2016-11-15 22:22:13 -07:00
Camera.h Remove exports for header-only functions/methods 2016-11-15 22:22:13 -07:00
CMakeLists.txt Fixing typo in CMakeLists 2016-05-18 16:38:15 -07:00
Ray.h Remove exports for header-only functions/methods 2016-11-15 22:22:13 -07:00
RayTracer.h Remove exports for header-only functions/methods 2016-11-15 22:22:13 -07:00
RayTracingTypeDefs.h Ray Tracer 2016-05-17 22:13:36 -07:00
TriangleIntersector.h Remove exports for header-only functions/methods 2016-11-15 22:22:13 -07:00
VolumeRendererStructured.h Fix an issue with casting a float to an int too soon 2016-11-22 15:34:56 -07:00
Worklets.h Remove exports for header-only functions/methods 2016-11-15 22:22:13 -07:00