| 66 | } |
| 67 | |
| 68 | void 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 | |
| 84 | void QuadLight::processIntensityQuantityType() |
| 85 | { |
nothing calls this directly
no test coverage detected