diff options
author | reduz <reduzio@gmail.com> | 2021-01-24 16:00:20 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-01-24 20:17:28 -0300 |
commit | a9beb7aa8c9e81c57ff4c9753c846bf14c5a1620 (patch) | |
tree | a171779287d4244f016863f32b5ec3dd106e8d9d /servers/rendering_server.h | |
parent | 6fe342478b7203ca36fdbaa34a31618c5bba42ce (diff) | |
download | redot-engine-a9beb7aa8c9e81c57ff4c9753c846bf14c5a1620.tar.gz |
Shadow map rendering optimization
-All shadow rendering is done with raster now (no compute)
-All shadow rendering is done by rendering directly to the shadow atlas
-Improved how buffer clearing is done to optimize the above.
-Ability to set shadows as 16 bits.
Diffstat (limited to 'servers/rendering_server.h')
-rw-r--r-- | servers/rendering_server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering_server.h b/servers/rendering_server.h index 8693f733e2..c4483133e4 100644 --- a/servers/rendering_server.h +++ b/servers/rendering_server.h @@ -798,7 +798,7 @@ public: virtual void viewport_set_sdf_oversize_and_scale(RID p_viewport, ViewportSDFOversize p_oversize, ViewportSDFScale p_scale) = 0; - virtual void viewport_set_shadow_atlas_size(RID p_viewport, int p_size) = 0; + virtual void viewport_set_shadow_atlas_size(RID p_viewport, int p_size, bool p_16_bits = false) = 0; virtual void viewport_set_shadow_atlas_quadrant_subdivision(RID p_viewport, int p_quadrant, int p_subdiv) = 0; enum ViewportMSAA { @@ -868,7 +868,7 @@ public: virtual float viewport_get_measured_render_time_cpu(RID p_viewport) const = 0; virtual float viewport_get_measured_render_time_gpu(RID p_viewport) const = 0; - virtual void directional_shadow_atlas_set_size(int p_size) = 0; + virtual void directional_shadow_atlas_set_size(int p_size, bool p_16_bits = false) = 0; /* SKY API */ |