MCPcopy Create free account
hub / github.com/RenderKit/ospray / SetUp

Method SetUp

apps/ospTestSuite/test_light.cpp:20–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void LightTest::SetUp()
21{
22 Base::SetUp();
23
24 // set common renderer parameter
25 if (rendererType == "pathtracer")
26 renderer.setParam("maxPathLength", 1);
27 if (rendererType == "scivis") {
28 renderer.setParam("shadows", true);
29 renderer.setParam("visibleLights", true);
30 }
31
32 // build cornell box scene
33 auto builder = ospray::testing::newBuilder("cornell_box");
34 ospray::testing::setParam(builder, "rendererType", rendererType);
35 ospray::testing::commit(builder);
36 auto group = ospray::testing::buildGroup(builder);
37 AddInstance(cpp::Instance(group));
38 ospray::testing::release(builder);
39
40 // position camera
41 camera.setParam("position", vec3f(0, 0, -2.4641));
42}
43
44void LightTest::AddInstancedLightWithMB(
45 cpp::Light light, const affine3f &xfm1, const affine3f &xfm2)

Callers

nothing calls this directly

Calls 10

newBuilderFunction · 0.85
setParamFunction · 0.85
buildGroupFunction · 0.85
ospNewLightFunction · 0.85
commitFunction · 0.50
InstanceClass · 0.50
releaseFunction · 0.50
setParamMethod · 0.45
commitMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected