| 58 | } |
| 59 | |
| 60 | List<LightSource> InspectionTool::lightSources() const { |
| 61 | if (!initialized()) |
| 62 | return {}; |
| 63 | |
| 64 | float angle = world()->geometry().diff(owner()->aimPosition(), owner()->position()).angle(); |
| 65 | LightSource lightSource; |
| 66 | lightSource.type = LightType::Point; |
| 67 | lightSource.position = owner()->position() + owner()->handPosition(hand(), m_lightPosition - m_handPosition); |
| 68 | lightSource.color = m_lightColor.toRgbF(); |
| 69 | lightSource.pointBeam = m_beamWidth; |
| 70 | lightSource.beamAngle = angle; |
| 71 | lightSource.beamAmbience = m_ambientFactor; |
| 72 | return {std::move(lightSource)}; |
| 73 | } |
| 74 | |
| 75 | float InspectionTool::inspectionHighlightLevel(InspectableEntityPtr const& inspectable) const { |
| 76 | if (m_showHighlights) |
nothing calls this directly
no test coverage detected