From b35eb24ca5ed8f3aa8a09b48783835160a17e24f Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 8 Dec 2020 21:13:35 +0000 Subject: [PATCH] WS30: Improved material atlas Add - texture size - shininess - diffuse - specular from material.xml into the fragment shader via sampler1D. --- src/Airports/AirportBuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Airports/AirportBuilder.cxx b/src/Airports/AirportBuilder.cxx index 51462a08f..79434c304 100644 --- a/src/Airports/AirportBuilder.cxx +++ b/src/Airports/AirportBuilder.cxx @@ -584,7 +584,7 @@ osg::ref_ptr AirportBuilder::getMaterialEffect(std::string material, con if (sgOpts->getMaterialLib()) { const SGGeod loc = SGGeod(sgOpts->getLocation()); - SGMaterialCache* matcache = sgOpts->getMaterialLib()->generateMatCache(loc); + SGMaterialCache* matcache = sgOpts->getMaterialLib()->generateMatCache(loc, sgOpts); SGMaterial* mat = matcache->find(material); delete matcache;