3D Viewer: fix swapped VRML material colors.

* Fix a bug in the VRML2 parser which exchanged the blue and green components
  of the ambient lighting.
This commit is contained in:
Cirilo Bernardo 2016-06-13 12:50:42 -04:00 committed by Wayne Stambaugh
parent 1c838ba92f
commit 9b2dba2b1b
2 changed files with 2 additions and 2 deletions

View File

@ -405,7 +405,7 @@ SGNODE* WRL2MATERIAL::TranslateToSG( SGNODE* aParent )
float ambr = ambientIntensity * diffuseColor.x;
float ambg = ambientIntensity * diffuseColor.y;
float ambb = ambientIntensity * diffuseColor.z;
matNode.SetAmbient( ambr, ambb, ambg );
matNode.SetAmbient( ambr, ambg, ambb );
matNode.SetShininess( shininess );
matNode.SetTransparency( transparency );
m_sgNode = matNode.GetRawPtr();

View File

@ -46,7 +46,7 @@
#define PLUGIN_VRML_MAJOR 1
#define PLUGIN_VRML_MINOR 3
#define PLUGIN_VRML_PATCH 2
#define PLUGIN_VRML_REVNO 1
#define PLUGIN_VRML_REVNO 2
const char* GetKicadPluginName( void )