| 81 | |
| 82 | //! Create an ispc-side DirectionalLight object |
| 83 | extern "C" void* DirectionalLight_create() |
| 84 | { |
| 85 | DirectionalLight* self = (DirectionalLight*) alignedUSMMalloc(sizeof(DirectionalLight),16); |
| 86 | Light_Constructor(&self->super); |
| 87 | //self->super.sample = GET_FUNCTION_POINTER(DirectionalLight_sample); |
| 88 | //self->super.eval = GET_FUNCTION_POINTER(DirectionalLight_eval); |
| 89 | self->super.type = LIGHT_DIRECTIONAL; |
| 90 | |
| 91 | DirectionalLight_set(self, Vec3fa(0.f, 0.f, 1.f), Vec3fa(1.f), 1.f); |
| 92 | return self; |
| 93 | } |
| 94 | |
| 95 | } // namespace embree |
no test coverage detected