| 1483 | } |
| 1484 | |
| 1485 | const 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 | |
| 1495 | vec3 SceneGraph::GetColorAtPoint(const vec3& pos) { |
| 1496 | vec3 hit_pos; |
no outgoing calls
no test coverage detected