mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 17:26:24 +02:00
A few changes in the material call back
This commit is contained in:
parent
b03f639e2c
commit
2ed7f997e3
2 changed files with 3 additions and 1 deletions
|
@ -867,6 +867,8 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
|
|||
FBXMaterial material;
|
||||
if (object.properties.at(1).toByteArray().contains("StingrayPBS1")) {
|
||||
material.isPBSMaterial = true;
|
||||
} else if (object.properties.at(1).toByteArray().contains("StingrayPBS2")) {
|
||||
material.isPBSMaterial = true;
|
||||
}
|
||||
foreach (const FBXNode& subobject, object.children) {
|
||||
bool properties = false;
|
||||
|
|
|
@ -29,6 +29,6 @@ Material getMaterial() {
|
|||
float getMaterialOpacity(Material m) { return m._albedoOpacity.a; }
|
||||
vec3 getMaterialAlbedo(Material m) { return m._albedoOpacity.rgb; }
|
||||
vec3 getMaterialSpecular(Material m) { return m._specular.rgb; }
|
||||
float getMaterialShininess(Material m) { return m._specular.a; }
|
||||
float getMaterialShininess(Material m) { return (1 - m._specular.a); }
|
||||
|
||||
<@endif@>
|
||||
|
|
Loading…
Reference in a new issue