| 120 | |
| 121 | //! Create an ispc-side PointLight object |
| 122 | extern "C" void* PointLight_create() |
| 123 | { |
| 124 | PointLight* self = (PointLight*) alignedUSMMalloc(sizeof(PointLight),16); |
| 125 | Light_Constructor(&self->super); |
| 126 | //self->super.sample = GET_FUNCTION_POINTER(PointLight_sample); |
| 127 | //self->super.eval = GET_FUNCTION_POINTER(PointLight_eval); |
| 128 | self->super.type = LIGHT_POINT; |
| 129 | |
| 130 | PointLight_set(self, Vec3fa(0.f), Vec3fa(1.f), 0.f); |
| 131 | return self; |
| 132 | } |
| 133 | |
| 134 | } // namespace embree |
no test coverage detected