MCPcopy Create free account
hub / github.com/RenderKit/embree / RandomSampler_get3D

Function RandomSampler_get3D

tutorials/common/math/random_sampler.h:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

fastMakeRayFunction · 0.85
random_Vec3faMethod · 0.85
shootRandomRaysFunction · 0.85
renderPixelStandardFunction · 0.85

Calls 4

RandomSampler_getUIntFunction · 0.85
Vec3faClass · 0.50
srlFunction · 0.50
Vec3iaFunction · 0.50

Tested by

no test coverage detected