We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd51a9 commit 08345c0Copy full SHA for 08345c0
impeller/scene/material.cc
@@ -79,9 +79,11 @@ std::unique_ptr<UnlitMaterial> UnlitMaterial::MakeFromFlatbuffer(
79
80
auto result = Material::MakeUnlit();
81
82
- result->SetColor(material.base_color_factor()
83
- ? importer::ToColor(*material.base_color_factor())
84
- : Color::White());
+ if (material.base_color_factor()) {
+ result->SetColor(importer::ToColor(*material.base_color_factor()));
+ result->SetVertexColorWeight(0);
85
+ }
86
+
87
if (material.base_color_texture() >= 0 &&
88
material.base_color_texture() < static_cast<int32_t>(textures.size())) {
89
result->SetColorTexture(textures[material.base_color_texture()]);
0 commit comments