1
0
Fork 0

WS30: Improved material atlas

Add
- texture size
- shininess
- diffuse
- specular

from material.xml into the fragment shader via sampler1D.
This commit is contained in:
Stuart Buchanan 2020-12-08 21:13:35 +00:00
parent 017bb8a042
commit b35eb24ca5

View file

@ -584,7 +584,7 @@ osg::ref_ptr<Effect> 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;