MCPcopy Create free account
hub / github.com/RenderKit/ospray / setSh

Method setSh

modules/cpu/lights/IntensityDistribution.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void 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

Callers 3

createShMethod · 0.80
createShMethod · 0.80
createShMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected