Use ambientColor in LightingData

This commit is contained in:
John Lewin 2018-03-23 15:02:27 -07:00
parent fb39372a56
commit eec880eaac
2 changed files with 1 additions and 10 deletions

View file

@ -82,7 +82,7 @@ namespace MatterHackers.MatterControl
world.Translate(new Vector3(0, yOffset, 0));
world.Rotate(Quaternion.FromEulerAngles(new Vector3(rotateX, 0, 0)));
InteractionLayer.SetGlContext(world, screenSpaceBounds, lighting, this.AmbientColor);
InteractionLayer.SetGlContext(world, screenSpaceBounds, lighting);
GLHelper.Render(logoMesh, this.MeshColor, Matrix4X4.CreateRotationY(angle), RenderTypes.Shaded);
InteractionLayer.UnsetGlContext();
};