| 98 | } |
| 99 | |
| 100 | __forceinline Vec3fa RandomSampler_get3D(RandomSampler& self) |
| 101 | { |
| 102 | /* |
| 103 | const float u = RandomSampler_get1D(self); |
| 104 | const float v = RandomSampler_get1D(self); |
| 105 | const float w = RandomSampler_get1D(self); |
| 106 | return Vec3fa(u,v,w); |
| 107 | */ |
| 108 | const int u = RandomSampler_getUInt(self); |
| 109 | const int v = RandomSampler_getUInt(self); |
| 110 | const int w = RandomSampler_getUInt(self); |
| 111 | return Vec3fa(srl(Vec3ia(u,v,w), 1)) * 4.656612873077392578125e-10f; |
| 112 | } |
| 113 | |
| 114 | } // namespace embree |
no test coverage detected