summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_compositor.h
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2021-05-11 23:08:38 +1000
committerBastiaan Olij <mux213@gmail.com>2021-05-12 22:52:28 +1000
commit02980be83443ab685651cec7967f1e939351e55e (patch)
treeb12e6dbf54c96d77075d19cf5e47eb774d99e5d2 /servers/rendering/renderer_compositor.h
parent0c693f878147d6c1e1a5fc48a92a40b189c915ad (diff)
downloadredot-engine-02980be83443ab685651cec7967f1e939351e55e.tar.gz
Implementing blit shader with versions
Diffstat (limited to 'servers/rendering/renderer_compositor.h')
-rw-r--r--servers/rendering/renderer_compositor.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/servers/rendering/renderer_compositor.h b/servers/rendering/renderer_compositor.h
index 919ae2c6da..41aaba0f4c 100644
--- a/servers/rendering/renderer_compositor.h
+++ b/servers/rendering/renderer_compositor.h
@@ -59,7 +59,22 @@ public:
struct BlitToScreen {
RID render_target;
Rect2i rect;
- //lens distorted parameters for VR should go here
+
+ struct {
+ bool use_layer = false;
+ uint32_t layer = 0;
+ } multi_view;
+
+ struct {
+ //lens distorted parameters for VR
+ bool apply = false;
+ Vector2 eye_center;
+ float k1 = 0.0;
+ float k2 = 0.0;
+
+ float upscale = 1.0;
+ float aspect_ratio = 1.0;
+ } lens_distortion;
};
virtual void prepare_for_blitting_render_targets() = 0;