Skip to content

Commit bf3ecb6

Browse files
committed
Start moving motion_blur_tile_level & quality to ProjectSettings
1 parent 3823bd7 commit bf3ecb6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

servers/rendering/rendering_server.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3214,13 +3214,15 @@ void RenderingServer::_bind_methods() {
32143214

32153215
ClassDB::bind_method(D_METHOD("camera_attributes_create"), &RenderingServer::camera_attributes_create);
32163216

3217-
ClassDB::bind_method(D_METHOD("camera_attributes_set_motion_blur", "camera_attributes", "enabled", "intensity", "tile_level", "quality", "clamp_velocities_to_tile", "custom_curve"), &RenderingServer::camera_attributes_set_motion_blur);
32183217
ClassDB::bind_method(D_METHOD("camera_attributes_set_dof_blur_quality", "quality", "use_jitter"), &RenderingServer::camera_attributes_set_dof_blur_quality);
32193218
ClassDB::bind_method(D_METHOD("camera_attributes_set_dof_blur_bokeh_shape", "shape"), &RenderingServer::camera_attributes_set_dof_blur_bokeh_shape);
3219+
ClassDB::bind_method(D_METHOD("camera_attributes_set_motion_blur_quality", "quality"), &RenderingServer::camera_attributes_set_motion_blur_quality);
3220+
ClassDB::bind_method(D_METHOD("camera_attributes_set_motion_blur_tile_level", "tile_level"), &RenderingServer::camera_attributes_set_motion_blur_tile_level);
32203221

32213222
ClassDB::bind_method(D_METHOD("camera_attributes_set_dof_blur", "camera_attributes", "far_enable", "far_distance", "far_transition", "near_enable", "near_distance", "near_transition", "amount"), &RenderingServer::camera_attributes_set_dof_blur);
32223223
ClassDB::bind_method(D_METHOD("camera_attributes_set_exposure", "camera_attributes", "multiplier", "normalization"), &RenderingServer::camera_attributes_set_exposure);
32233224
ClassDB::bind_method(D_METHOD("camera_attributes_set_auto_exposure", "camera_attributes", "enable", "min_sensitivity", "max_sensitivity", "speed", "scale"), &RenderingServer::camera_attributes_set_auto_exposure);
3225+
ClassDB::bind_method(D_METHOD("camera_attributes_set_motion_blur", "camera_attributes", "enabled", "intensity", "tile_level", "quality", "clamp_velocities_to_tile", "custom_curve"), &RenderingServer::camera_attributes_set_motion_blur);
32243226

32253227
BIND_ENUM_CONSTANT(DOF_BOKEH_BOX);
32263228
BIND_ENUM_CONSTANT(DOF_BOKEH_HEXAGON);
@@ -3231,6 +3233,15 @@ void RenderingServer::_bind_methods() {
32313233
BIND_ENUM_CONSTANT(DOF_BLUR_QUALITY_MEDIUM);
32323234
BIND_ENUM_CONSTANT(DOF_BLUR_QUALITY_HIGH);
32333235

3236+
BIND_ENUM_CONSTANT(MOTION_BLUR_QUALITY_LOW);
3237+
BIND_ENUM_CONSTANT(MOTION_BLUR_QUALITY_MEDIUM);
3238+
BIND_ENUM_CONSTANT(MOTION_BLUR_QUALITY_HIGH);
3239+
3240+
BIND_ENUM_CONSTANT(MOTION_BLUR_TILE_LEVEL_SMALL);
3241+
BIND_ENUM_CONSTANT(MOTION_BLUR_TILE_LEVEL_MEDIUM);
3242+
BIND_ENUM_CONSTANT(MOTION_BLUR_TILE_LEVEL_LARGE);
3243+
BIND_ENUM_CONSTANT(MOTION_BLUR_TILE_LEVEL_EXTRA_LARGE);
3244+
32343245
/* SCENARIO */
32353246

32363247
ClassDB::bind_method(D_METHOD("scenario_create"), &RenderingServer::scenario_create);

servers/rendering/rendering_server.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,9 @@ class RenderingServer : public Object {
14131413

14141414
virtual void camera_attributes_set_motion_blur(RID p_camera_attributes, bool p_enable, float p_intensity, MotionBlurTileLevel p_tile_level, MotionBlurQuality p_quality, bool p_clamp_velocities_to_tile, RID p_custom_curve) = 0;
14151415

1416+
virtual void camera_attributes_set_motion_blur_quality(MotionBlurQuality p_quality);
1417+
virtual void camera_attributes_set_motion_blur_tile_level(MotionBlurTileLevel p_tile_level);
1418+
14161419
enum DOFBlurQuality {
14171420
DOF_BLUR_QUALITY_VERY_LOW,
14181421
DOF_BLUR_QUALITY_LOW,

0 commit comments

Comments
 (0)