| 35 | namespace gltf { |
| 36 | |
| 37 | GltfMaterialData::GltfMaterialData(std::string_view materialName, const model::RenderingColor& color, bool isDoubleSided) |
| 38 | : m_materialName(materialName), |
| 39 | m_r(color.renderingRedValue()), |
| 40 | m_g(color.renderingGreenValue()), |
| 41 | m_b(color.renderingBlueValue()), |
| 42 | m_a(color.renderingAlphaValue() / 255.0), |
| 43 | m_isDoubleSided(isDoubleSided) {} |
| 44 | |
| 45 | std::string GltfMaterialData::materialName() const { |
| 46 | return std::string{m_materialName}; |
nothing calls this directly
no test coverage detected