mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-09 16:52:12 +02:00
Save some bandwidth by not including unity texture transforms in material jsons
This commit is contained in:
parent
9cb5ed888a
commit
74b4b47a2a
1 changed files with 2 additions and 2 deletions
|
@ -470,12 +470,12 @@ namespace scriptable {
|
|||
// These need to be implemented, but set the fallthrough for now
|
||||
if (hasPropertyFallthroughs && material.propertyFallthroughs.at(graphics::Material::TEXCOORDTRANSFORM0)) {
|
||||
obj.setProperty("texCoordTransform0", FALLTHROUGH);
|
||||
} else {
|
||||
} else if (material.texCoordTransforms[0] != mat4()) {
|
||||
obj.setProperty("texCoordTransform0", mat4toScriptValue(engine, material.texCoordTransforms[0]));
|
||||
}
|
||||
if (hasPropertyFallthroughs && material.propertyFallthroughs.at(graphics::Material::TEXCOORDTRANSFORM1)) {
|
||||
obj.setProperty("texCoordTransform1", FALLTHROUGH);
|
||||
} else {
|
||||
} else if (material.texCoordTransforms[1] != mat4()) {
|
||||
obj.setProperty("texCoordTransform1", mat4toScriptValue(engine, material.texCoordTransforms[1]));
|
||||
}
|
||||
if (hasPropertyFallthroughs && material.propertyFallthroughs.at(graphics::Material::LIGHTMAP_PARAMS)) {
|
||||
|
|
Loading…
Reference in a new issue