mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
Adding the shadingMOdel read from the fbx material
This commit is contained in:
parent
d2889dbda4
commit
3c80767ec3
2 changed files with 4 additions and 0 deletions
|
@ -892,7 +892,10 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
|
|||
properties = true;
|
||||
propertyName = "P";
|
||||
index = 4;
|
||||
} else if (subobject.name == "ShadingModel") {
|
||||
material.shadingModel = subobject.properties.at(0).toString();
|
||||
}
|
||||
|
||||
if (properties) {
|
||||
std::vector<std::string> unknowns;
|
||||
foreach(const FBXNode& property, subobject.children) {
|
||||
|
|
|
@ -154,6 +154,7 @@ public:
|
|||
|
||||
QString materialID;
|
||||
QString name;
|
||||
QString shadingModel;
|
||||
model::MaterialPointer _material;
|
||||
|
||||
FBXTexture normalTexture;
|
||||
|
|
Loading…
Reference in a new issue