| 98 | |
| 99 | //! Set the parameters of an ispc-side SpotLight object |
| 100 | extern "C" void SpotLight_set(void* super, |
| 101 | const Vec3fa& position, |
| 102 | const Vec3fa& direction, |
| 103 | const Vec3fa& power, |
| 104 | float cosAngleMax, |
| 105 | float cosAngleScale, |
| 106 | float radius) |
| 107 | { |
| 108 | SpotLight* self = (SpotLight*)super; |
| 109 | self->position = position; |
| 110 | self->frame = frame(direction); |
| 111 | self->power = power; |
| 112 | self->cosAngleMax = cosAngleMax; |
| 113 | self->cosAngleScale = cosAngleScale; |
| 114 | self->radius = radius; |
| 115 | self->diskPdf = uniformSampleDiskPDF(radius); |
| 116 | } |
| 117 | |
| 118 | //! Create an ispc-side SpotLight object |
| 119 | extern "C" void* SpotLight_create() |
no test coverage detected