mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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::
|
||||
make_default() {
|
||||
return return_new(new AntialiasAttrib(M_none));
|
||||
if (default_antialias_enable) {
|
||||
return return_new(new AntialiasAttrib(M_auto));
|
||||
} else {
|
||||
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 "
|
||||
"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
|
||||
("polylight-info", false,
|
||||
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 flatten_geoms;
|
||||
extern EXPCL_PANDA_PGRAPH ConfigVariableInt max_lenses;
|
||||
extern ConfigVariableBool default_antialias_enable;
|
||||
|
||||
extern ConfigVariableBool polylight_info;
|
||||
extern ConfigVariableDouble lod_fade_time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user