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

Function AmbientLight_Constructor

tutorials/common/lights/ambient_light.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54void AmbientLight_Constructor(AmbientLight* self,
55 const Vec3fa& radiance)
56{
57 Light_Constructor(&self->super);
58 self->radiance = radiance;
59 //self->super.sample = GET_FUNCTION_POINTER(AmbientLight_sample);
60 //self->super.eval = GET_FUNCTION_POINTER(AmbientLight_eval);
61 self->super.type = LIGHT_AMBIENT;
62}
63
64
65// Exports (called from C++)

Callers 1

AmbientLight_createFunction · 0.85

Calls 1

Light_ConstructorFunction · 0.85

Tested by

no test coverage detected