mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
turn off broken lighting
This commit is contained in:
parent
2df01768f0
commit
96cf855d07
@ -343,6 +343,8 @@ void display_func( void ) {
|
|||||||
|
|
||||||
void set_lighting(bool enabled) {
|
void set_lighting(bool enabled) {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
cerr << "lighting is no longer supported in old scene graph.\n";
|
||||||
|
/*
|
||||||
// Enable the lights on the initial state.
|
// Enable the lights on the initial state.
|
||||||
PT(LightTransition) la = new LightTransition;
|
PT(LightTransition) la = new LightTransition;
|
||||||
la->set_on(light.p());
|
la->set_on(light.p());
|
||||||
@ -351,6 +353,7 @@ void set_lighting(bool enabled) {
|
|||||||
la->set_on(dlight.p());
|
la->set_on(dlight.p());
|
||||||
}
|
}
|
||||||
render_arc->set_transition(la);
|
render_arc->set_transition(la);
|
||||||
|
*/
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Remove the lights from the initial state.
|
// Remove the lights from the initial state.
|
||||||
@ -1182,6 +1185,7 @@ int framework_main(int argc, char *argv[]) {
|
|||||||
lights = new NamedNode("lights");
|
lights = new NamedNode("lights");
|
||||||
new RenderRelation(camera_top, lights);
|
new RenderRelation(camera_top, lights);
|
||||||
|
|
||||||
|
/*
|
||||||
light = new AmbientLight( "ambient" );
|
light = new AmbientLight( "ambient" );
|
||||||
dlight = new DirectionalLight( "directional" );
|
dlight = new DirectionalLight( "directional" );
|
||||||
plight = new PointLight( "point" );
|
plight = new PointLight( "point" );
|
||||||
@ -1195,6 +1199,7 @@ int framework_main(int argc, char *argv[]) {
|
|||||||
new RenderRelation( lights, plight );
|
new RenderRelation( lights, plight );
|
||||||
new RenderRelation( lights, slight );
|
new RenderRelation( lights, slight );
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
// Turn on culling.
|
// Turn on culling.
|
||||||
CullFaceTransition *cfa = new CullFaceTransition(CullFaceProperty::M_cull_clockwise);
|
CullFaceTransition *cfa = new CullFaceTransition(CullFaceProperty::M_cull_clockwise);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user