mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Add default-antialias-enable configuration variable
This commit is contained in:
parent
e461c21c56
commit
a003a73c3f
@ -74,7 +74,11 @@ make(unsigned short mode) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
CPT(RenderAttrib) AntialiasAttrib::
|
CPT(RenderAttrib) AntialiasAttrib::
|
||||||
make_default() {
|
make_default() {
|
||||||
|
if (default_antialias_enable) {
|
||||||
|
return return_new(new AntialiasAttrib(M_auto));
|
||||||
|
} else {
|
||||||
return return_new(new AntialiasAttrib(M_none));
|
return return_new(new AntialiasAttrib(M_none));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -305,6 +305,11 @@ ConfigVariableInt max_lenses
|
|||||||
"this can be used as a simple sanity check. Set it larger or "
|
"this can be used as a simple sanity check. Set it larger or "
|
||||||
"smaller to suit your needs."));
|
"smaller to suit your needs."));
|
||||||
|
|
||||||
|
ConfigVariableBool default_antialias_enable
|
||||||
|
("default-antialias-enable", false,
|
||||||
|
PRC_DESC("Set this true to enable the M_auto antialiasing mode for all "
|
||||||
|
"nodes by default."));
|
||||||
|
|
||||||
ConfigVariableBool polylight_info
|
ConfigVariableBool polylight_info
|
||||||
("polylight-info", false,
|
("polylight-info", false,
|
||||||
PRC_DESC("Set this true to view some info statements regarding the polylight. "
|
PRC_DESC("Set this true to view some info statements regarding the polylight. "
|
||||||
|
@ -58,6 +58,7 @@ extern EXPCL_PANDA_PGRAPH ConfigVariableBool premunge_data;
|
|||||||
extern ConfigVariableBool preserve_geom_nodes;
|
extern ConfigVariableBool preserve_geom_nodes;
|
||||||
extern ConfigVariableBool flatten_geoms;
|
extern ConfigVariableBool flatten_geoms;
|
||||||
extern EXPCL_PANDA_PGRAPH ConfigVariableInt max_lenses;
|
extern EXPCL_PANDA_PGRAPH ConfigVariableInt max_lenses;
|
||||||
|
extern ConfigVariableBool default_antialias_enable;
|
||||||
|
|
||||||
extern ConfigVariableBool polylight_info;
|
extern ConfigVariableBool polylight_info;
|
||||||
extern ConfigVariableDouble lod_fade_time;
|
extern ConfigVariableDouble lod_fade_time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user