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

Method materialID

tutorials/common/tutorial/scene.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 unsigned TutorialScene::materialID(Ref<SceneGraph::MaterialNode> material)
33 {
34 if (material->id == -1) {
35 materials.push_back(material);
36 material->id = unsigned(materials.size()-1);
37 }
38 return material->id;
39 }
40
41 void TutorialScene::print_camera_names ()
42 {

Callers 6

ISPCTriangleMeshMethod · 0.80
ISPCQuadMeshMethod · 0.80
ISPCGridMeshMethod · 0.80
ISPCSubdivMeshMethod · 0.80
ISPCHairSetMethod · 0.80
ISPCPointSetMethod · 0.80

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected