From 96cf855d07c3993d6de9cc35a46691d31055d004 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 28 Mar 2002 02:48:21 +0000 Subject: [PATCH] turn off broken lighting --- panda/src/framework/framework_multimon.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/framework/framework_multimon.cxx b/panda/src/framework/framework_multimon.cxx index 1f3e30570d..3b02ad6983 100644 --- a/panda/src/framework/framework_multimon.cxx +++ b/panda/src/framework/framework_multimon.cxx @@ -343,6 +343,8 @@ void display_func( void ) { void set_lighting(bool enabled) { if (enabled) { + cerr << "lighting is no longer supported in old scene graph.\n"; + /* // Enable the lights on the initial state. PT(LightTransition) la = new LightTransition; la->set_on(light.p()); @@ -351,6 +353,7 @@ void set_lighting(bool enabled) { la->set_on(dlight.p()); } render_arc->set_transition(la); + */ } else { // Remove the lights from the initial state. @@ -1182,6 +1185,7 @@ int framework_main(int argc, char *argv[]) { lights = new NamedNode("lights"); new RenderRelation(camera_top, lights); + /* light = new AmbientLight( "ambient" ); dlight = new DirectionalLight( "directional" ); plight = new PointLight( "point" ); @@ -1195,6 +1199,7 @@ int framework_main(int argc, char *argv[]) { new RenderRelation( lights, plight ); new RenderRelation( lights, slight ); #endif + */ // Turn on culling. CullFaceTransition *cfa = new CullFaceTransition(CullFaceProperty::M_cull_clockwise);