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:
parent
1c838ba92f
commit
9b2dba2b1b
|
@ -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();
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue