WS30: Fix passing of edge-hardness to shader
This commit is contained in:
@@ -397,7 +397,7 @@ SGMaterialCache::Atlas SGMaterialLib::getMaterialTextureAtlas(SGVec2f center, co
|
||||
continue;
|
||||
}
|
||||
|
||||
atlas.dimensions->setElement(materialLookupIndex, osg::Vec4f(mat->get_xsize(), mat->get_ysize(), mat->get_shininess(), mat->get_parameter("edge-hardness")));
|
||||
atlas.dimensions->setElement(materialLookupIndex, osg::Vec4f(mat->get_xsize(), mat->get_ysize(), mat->get_shininess(), (double) mat->get_parameter("edge-hardness")));
|
||||
atlas.ambient->setElement(materialLookupIndex, mat->get_ambient());
|
||||
atlas.diffuse->setElement(materialLookupIndex, mat->get_diffuse());
|
||||
atlas.specular->setElement(materialLookupIndex, mat->get_specular());
|
||||
|
||||
Reference in New Issue
Block a user