diff options
| author | Juan Linietsky | 2014-05-14 01:22:15 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-05-14 01:22:15 -0300 |
| commit | b324ff7ea584676fcc3292808d7e7ea609982f8e (patch) | |
| tree | b80e9aa0b8f2926a398e25ef904f6229cb3e28dd /scene/resources/environment.cpp | |
| parent | 45a509282e912d85c46b40974a2deb926be5be42 (diff) | |
| download | godot-b324ff7ea584676fcc3292808d7e7ea609982f8e.tar.gz godot-b324ff7ea584676fcc3292808d7e7ea609982f8e.tar.zst godot-b324ff7ea584676fcc3292808d7e7ea609982f8e.zip | |
Diffstat (limited to 'scene/resources/environment.cpp')
| -rw-r--r-- | scene/resources/environment.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 3e12c7a5b..0c55d22db 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -101,6 +101,8 @@ void Environment::_bind_methods() { ObjectTypeDB::bind_method(_MD("fx_set_param","param","value"),&Environment::fx_set_param); ObjectTypeDB::bind_method(_MD("fx_get_param","param"),&Environment::fx_get_param); + ADD_PROPERTYI( PropertyInfo(Variant::BOOL,"fxaa/enabled"),_SCS("set_enable_fx"),_SCS("is_fx_enabled"), FX_FXAA); + ADD_PROPERTY( PropertyInfo(Variant::INT,"background/mode",PROPERTY_HINT_ENUM,"Keep,Default Color,Color,Texture,Cubemap,Texture RGBE,Cubemap RGBE"),_SCS("set_background"),_SCS("get_background")); ADD_PROPERTYI( PropertyInfo(Variant::COLOR,"background/color"),_SCS("set_background_param"),_SCS("get_background_param"), BG_PARAM_COLOR); ADD_PROPERTYI( PropertyInfo(Variant::OBJECT,"background/texture",PROPERTY_HINT_RESOURCE_TYPE,"Texture"),_SCS("set_background_param"),_SCS("get_background_param"), BG_PARAM_TEXTURE); @@ -181,6 +183,7 @@ void Environment::_bind_methods() { BIND_CONSTANT( BG_PARAM_MAX ); + BIND_CONSTANT( FX_FXAA ); BIND_CONSTANT( FX_GLOW ); BIND_CONSTANT( FX_DOF_BLUR ); BIND_CONSTANT( FX_HDR ); |
