From 735f475c24b76e50f168ba80062f93f61d488058 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 1 Jul 2006 20:06:05 +0000 Subject: [PATCH] actually query the that is already set up in SGShaderAnimation --- simgear/scene/model/shadanim.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/simgear/scene/model/shadanim.cxx b/simgear/scene/model/shadanim.cxx index 610f9f91..f7d0d9fd 100644 --- a/simgear/scene/model/shadanim.cxx +++ b/simgear/scene/model/shadanim.cxx @@ -114,6 +114,9 @@ static int null_shader_callback( ssgEntity *e ) { } static int heat_haze_shader_callback( ssgEntity *e ) { + if( ! ((SGShadowAnimation *)e->getUserData())->get_condition_value() ) + return true; + GLuint dlist = 0; ssgLeaf *leaf = (ssgLeaf *) e; #ifdef _SSG_USE_DLIST @@ -312,6 +315,9 @@ static int heat_haze_shader_callback( ssgEntity *e ) { } static int fresnel_shader_callback( ssgEntity *e ) { + if( ! ((SGShadowAnimation *)e->getUserData())->get_condition_value() ) + return true; + GLuint dlist = 0; ssgLeaf *leaf = (ssgLeaf *) e; #ifdef _SSG_USE_DLIST @@ -385,6 +391,9 @@ static int fresnel_shader_callback( ssgEntity *e ) { static int chrome_shader_callback( ssgEntity *e ) { + if( ! ((SGShadowAnimation *)e->getUserData())->get_condition_value() ) + return true; + GLuint dlist = 0; ssgLeaf *leaf = (ssgLeaf *) e; #ifdef _SSG_USE_DLIST -- 2.39.5