Commit 398bb3cf authored by Jan Möbius's avatar Jan Möbius
Browse files

Store and load reflectance

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9043 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 61ad3837
......@@ -32,6 +32,10 @@ void INIPlugin::parseIniFileT(INIFile& _ini, MeshObject* _object) {
if ( _ini.get_entry( shininess, _object->name() , "Shininess" ) )
_object->materialNode()->set_shininess(shininess);
double reflectance;
if ( _ini.get_entry( shininess, _object->name() , "Reflectance" ) )
_object->materialNode()->reflectance(reflectance);
int size = 1;
if ( _ini.get_entry( size, _object->name() , "PointSize" ) )
_object->materialNode()->set_point_size(size);
......@@ -65,6 +69,9 @@ void INIPlugin::saveIniFileT(INIFile& _ini, MeshObject* _object) {
_ini.add_entry( _object->name() ,
"Shininess" ,
_object->materialNode()->shininess());
_ini.add_entry( _object->name() ,
"Reflectance" ,
_object->materialNode()->reflectance());
_ini.add_entry( _object->name() ,
"PointSize" ,
_object->materialNode()->point_size());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment