MCPcopy Create free account
hub / github.com/assimp/assimp / assignDiffuseColor

Function assignDiffuseColor

code/AssetLib/3MF/XmlSerializer.cpp:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void assignDiffuseColor(XmlNode &node, aiMaterial *mat) {
193 const char *color = node.attribute(XmlTag::basematerials_displaycolor).as_string();
194 aiColor4D diffuse;
195 if (parseColor(color, diffuse)) {
196 mat->AddProperty<aiColor4D>(&diffuse, 1, AI_MATKEY_COLOR_DIFFUSE);
197 }
198}
199
200} // namespace
201

Callers 1

readMaterialDefMethod · 0.85

Calls 3

parseColorFunction · 0.85
as_stringMethod · 0.80
attributeMethod · 0.45

Tested by

no test coverage detected