Commit c06f18cb authored by Mike Kremer's avatar Mike Kremer

Automatically set ambient color when adding empty mesh.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14362 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d847e5c2
......@@ -138,6 +138,8 @@ int TypeHexahedralMeshPlugin::addEmpty() {
object->materialNode()->applyProperties(ACG::SceneGraph::MaterialNode::All);
//object->materialNode()->enable_backface_culling();
object->materialNode()->set_ambient_color(ACG::Vec4f(1.0, 1.0, 1.0, 1.0));
// Set rendering props
object->meshNode()->drawMode(ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED);
object->meshNode()->set_scaling(0.8);
......
......@@ -94,6 +94,8 @@ int TypePolyhedralMeshPlugin::addEmpty() {
// enable backface culling
object->materialNode()->applyProperties(ACG::SceneGraph::MaterialNode::All);
object->materialNode()->set_ambient_color(ACG::Vec4f(1.0, 1.0, 1.0, 1.0));
// Set rendering props
object->meshNode()->drawMode(ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED);
object->meshNode()->set_scaling(0.8);
......
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