MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / GltfMaterialData

Method GltfMaterialData

src/gltf/GltfMaterialData.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace 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};

Callers

nothing calls this directly

Calls 4

renderingRedValueMethod · 0.80
renderingGreenValueMethod · 0.80
renderingBlueValueMethod · 0.80
renderingAlphaValueMethod · 0.80

Tested by

no test coverage detected