| 32 | } |
| 33 | |
| 34 | void IntensityDistribution::setSh(ispc::IntensityDistribution &sh) const |
| 35 | { |
| 36 | sh.lid = lid ? lid->data() : nullptr; |
| 37 | sh.size = size; |
| 38 | sh.scale.x = nextafter(float(size.x - 1) * float(one_over_pi), -1.0f); |
| 39 | sh.scale.y = nextafter(float(size.y) * float(one_over_two_pi), -1.0f); |
| 40 | } |
| 41 | |
| 42 | } // namespace ospray |