WS30: Improved material atlas
Add - texture size - shininess - diffuse - specular from material.xml into the fragment shader via sampler1D.
This commit is contained in:
parent
017bb8a042
commit
b35eb24ca5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue