MCPcopy Create free account
hub / github.com/RenderKit/embree / DirectionalLight_create

Function DirectionalLight_create

tutorials/common/lights/directional_light.cpp:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82//! Create an ispc-side DirectionalLight object
83extern "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

Callers 1

createLightMethod · 0.85

Calls 4

alignedUSMMallocFunction · 0.85
Light_ConstructorFunction · 0.85
DirectionalLight_setFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected