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

Function PointLight_set

tutorials/common/lights/point_light.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109//! Set the parameters of an ispc-side PointLight object
110extern "C" void PointLight_set(void* super,
111 const Vec3fa& position,
112 const Vec3fa& power,
113 float radius)
114{
115 PointLight* self = (PointLight*)super;
116 self->position = position;
117 self->power = power;
118 self->radius = radius;
119}
120
121//! Create an ispc-side PointLight object
122extern "C" void* PointLight_create()

Callers 2

updateLightMethod · 0.85
PointLight_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected