mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-11 23:27:32 +02:00
Tr
This commit is contained in:
parent
5e45ee456c
commit
38d2266d28
1 changed files with 3 additions and 1 deletions
|
@ -282,8 +282,10 @@ void OBJReader::parseMaterialLibrary(QIODevice* device) {
|
|||
//currentMaterial.specularTextureFilename = "";
|
||||
} else if (token == "Ns") {
|
||||
currentMaterial.shininess = tokenizer.getFloat();
|
||||
} else if ((token == "d") || (token == "Tr")) {
|
||||
} else if (token == "d") {
|
||||
currentMaterial.opacity = tokenizer.getFloat();
|
||||
} else if (token == "Tr") {
|
||||
currentMaterial.opacity = 1.0f - tokenizer.getFloat();
|
||||
} else if (token == "Ka") {
|
||||
currentMaterial.emissiveColor = tokenizer.getVec3();
|
||||
} else if (token == "Kd") {
|
||||
|
|
Loading…
Reference in a new issue