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

Function AmbientLight_create

tutorials/common/lights/ambient_light.cpp:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68//! Create an ispc-side AmbientLight object
69extern "C" void *AmbientLight_create()
70{
71 AmbientLight* self = (AmbientLight*) alignedUSMMalloc(sizeof(AmbientLight),16);
72 AmbientLight_Constructor(self, Vec3fa(1.f));
73 return self;
74}
75
76//! Set the parameters of an ispc-side AmbientLight object
77extern "C" void AmbientLight_set(void* super,

Callers 1

createLightMethod · 0.85

Calls 3

alignedUSMMallocFunction · 0.85
AmbientLight_ConstructorFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected