summaryrefslogtreecommitdiff
path: root/servers/visual_server.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-12-10 01:13:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-12-10 01:13:20 -0300
commit22a90e8f2acce60f92958788a52b3f0bdb1a0cdf (patch)
treef6e0a7282992c9adf3e1c929d2462ae921bcd461 /servers/visual_server.h
parent18ebd22000478dffc91255e89b9845f74b05b606 (diff)
DOF blur, near and far fields..
Diffstat (limited to 'servers/visual_server.h')
-rw-r--r--servers/visual_server.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/servers/visual_server.h b/servers/visual_server.h
index adc9f4960c..7558fbf818 100644
--- a/servers/visual_server.h
+++ b/servers/visual_server.h
@@ -536,13 +536,22 @@ public:
//set default SSR options
//set default SSSSS options
+ enum EnvironmentDOFBlurQuality {
+ ENV_DOF_BLUR_QUALITY_LOW,
+ ENV_DOF_BLUR_QUALITY_MEDIUM,
+ ENV_DOF_BLUR_QUALITY_HIGH,
+ };
+
+ virtual void environment_set_dof_blur_near(RID p_env,bool p_enable,float p_distance,float p_transition,float p_far_amount,EnvironmentDOFBlurQuality p_quality)=0;
+ virtual void environment_set_dof_blur_far(RID p_env,bool p_enable,float p_distance,float p_transition,float p_far_amount,EnvironmentDOFBlurQuality p_quality)=0;
+
enum EnvironmentGlowBlendMode {
GLOW_BLEND_MODE_ADDITIVE,
GLOW_BLEND_MODE_SCREEN,
GLOW_BLEND_MODE_SOFTLIGHT,
GLOW_BLEND_MODE_REPLACE,
};
- virtual void environment_set_glow(RID p_env,bool p_enable,int p_level_flags,float p_intensity,float p_strength,float p_bloom_treshold,EnvironmentGlowBlendMode p_blend_mode,float p_hdr_bleed_treshold,float p_hdr_bleed_scale)=0;
+ virtual void environment_set_glow(RID p_env,bool p_enable,int p_level_flags,float p_intensity,float p_strength,float p_bloom_treshold,EnvironmentGlowBlendMode p_blend_mode,float p_hdr_bleed_treshold,float p_hdr_bleed_scale,bool p_bicubic_upscale)=0;
virtual void environment_set_fog(RID p_env,bool p_enable,float p_begin,float p_end,RID p_gradient_texture)=0;