MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetMaterialParticle

Method GetMaterialParticle

Source/Main/scenegraph.cpp:1485–1493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485const MaterialParticle* SceneGraph::GetMaterialParticle(const std::string& type, const vec3& pos) {
1486 vec3 hit_pos;
1487 int hit_tri;
1488 Object* closest_obj = GetClosestObject(pos, NULL, &hit_pos, &hit_tri);
1489 if (!closest_obj) {
1490 return NULL;
1491 }
1492 return &closest_obj->GetMaterialParticle(type, pos, &hit_tri);
1493}
1494
1495vec3 SceneGraph::GetColorAtPoint(const vec3& pos) {
1496 vec3 hit_pos;

Callers 3

CollidedMethod · 0.80
asMaterialParticleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected