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

Method commit

modules/cpu/lights/QuadLight.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void QuadLight::commit()
69{
70 Light::commit();
71 position = getParam<vec3f>("position", vec3f(0.f));
72 edge1 = getParam<vec3f>("edge1", vec3f(1.f, 0.f, 0.f));
73 edge2 = getParam<vec3f>("edge2", vec3f(0.f, 1.f, 0.f));
74
75 intensityDistribution.c0 = edge2;
76 intensityDistribution.readParams(*this);
77
78 queryIntensityQuantityType(intensityDistribution
79 ? OSP_INTENSITY_QUANTITY_SCALE
80 : OSP_INTENSITY_QUANTITY_RADIANCE);
81 processIntensityQuantityType();
82}
83
84void QuadLight::processIntensityQuantityType()
85{

Callers

nothing calls this directly

Calls 2

commitFunction · 0.50
readParamsMethod · 0.45

Tested by

no test coverage detected