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

Function update_instance_scenes

tutorials/forest/forest_device.cpp:261–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void update_instance_scenes()
262{
263 if (g_use_instance_array)
264 {
265 rtcSetGeometryInstancedScenes(instance_array,(RTCScene*)scene_trees_selected,6);
266 rtcCommitGeometry(instance_array);
267 }
268 else
269 {
270 for (unsigned int i = 0; i < num_trees; ++i) {
271 rtcSetGeometryInstancedScene(instances[i],scene_trees_selected[data.tree_ids_host[i]]);
272 rtcCommitGeometry(instances[i]);
273 }
274 }
275}
276
277void update_instance_transforms()
278{

Callers 1

device_renderFunction · 0.85

Calls 3

rtcCommitGeometryFunction · 0.85

Tested by

no test coverage detected