Revert "Revert "gltfio: enable specular AO to "fix" #1870""

This reverts commit f9230856af.
This commit is contained in:
Philip Rideout
2019-12-18 13:56:13 -08:00
parent f9230856af
commit 237e0ee367
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ material {
depthWrite : true,
doubleSided : ${DOUBLESIDED},
flipUV : false,
specularAmbientOcclusion: true,
parameters : [
{ type : float3, name : specularFactor },
+1
View File
@@ -202,6 +202,7 @@ Material* createMaterial(Engine* engine, const MaterialKey& config, const UvMap&
MaterialBuilder builder = MaterialBuilder()
.name(name)
.flipUV(false)
.specularAmbientOcclusion(true)
.material(shader.c_str())
.doubleSided(config.doubleSided)
.targetApi(filamat::targetApiFromBackend(engine->getBackend()));