diff --git a/panda/src/display/config_display.cxx b/panda/src/display/config_display.cxx index ad96b0dc82..8c9c44dd0c 100644 --- a/panda/src/display/config_display.cxx +++ b/panda/src/display/config_display.cxx @@ -309,6 +309,15 @@ ConfigVariableBool sync_video "cheesy estimate of scene complexity. Some drivers may ignore " "this request.")); +ConfigVariableBool basic_shaders_only +("basic_shaders_only", false, + PRC_DESC("Set this to true if you aren't interested in shader model three " + "and beyond. Setting this flag will cause panda to disable " + "bleeding-edge shader functionality which tends to be unreliable " + "or broken. At some point, when functionality that is currently " + "flaky becomes reliable, we may expand the definition of what " + "constitutes 'basic' shaders.")); + //////////////////////////////////////////////////////////////////// // Function: init_libdisplay // Description: Initializes the library. This must be called at diff --git a/panda/src/display/config_display.h b/panda/src/display/config_display.h index 53dd702401..608bbf5cef 100644 --- a/panda/src/display/config_display.h +++ b/panda/src/display/config_display.h @@ -90,6 +90,7 @@ extern EXPCL_PANDA_DISPLAY ConfigVariableInt back_buffers; extern EXPCL_PANDA_DISPLAY ConfigVariableDouble background_color; extern EXPCL_PANDA_DISPLAY ConfigVariableBool sync_video; +extern EXPCL_PANDA_DISPLAY ConfigVariableBool basic_shaders_only; extern EXPCL_PANDA_DISPLAY void init_libdisplay();