Moving lens distortion shader into drivers and adding GLES2 support

This commit is contained in:
Bastiaan Olij 2018-10-01 06:51:50 +10:00
parent a16dc807e5
commit a6df366b23
18 changed files with 202 additions and 107 deletions

View file

@ -59,6 +59,7 @@ public:
virtual void restore_render_target();
virtual void clear_render_target(const Color &p_color);
virtual void blit_render_target_to_screen(RID p_render_target, const Rect2 &p_screen_rect, int p_screen = 0);
virtual void output_lens_distorted_to_screen(RID p_render_target, const Rect2 &p_screen_rect, float p_k1, float p_k2, const Vector2 &p_eye_center, float p_oversample);
virtual void end_frame(bool p_swap_buffers);
virtual void finalize();