Add 2D shadows and canvas SDF to OpenGL3 renderer

This is an initial implementation based on the current RD implementation

Performance will improve later
This commit is contained in:
clayjohn
2022-10-18 17:59:31 -07:00
parent 282e50ac88
commit 2ec234ff67
19 changed files with 1322 additions and 223 deletions

View File

@ -39,7 +39,6 @@ public:
void free_polygon(PolygonID p_polygon) override {}
void canvas_render_items(RID p_to_render_target, Item *p_item_list, const Color &p_modulate, Light *p_light_list, Light *p_directional_list, const Transform2D &p_canvas_transform, RS::CanvasItemTextureFilter p_default_filter, RS::CanvasItemTextureRepeat p_default_repeat, bool p_snap_2d_vertices_to_pixel, bool &r_sdf_used) override {}
void canvas_debug_viewport_shadows(Light *p_lights_with_shadow) override {}
RID light_create() override { return RID(); }
void light_set_texture(RID p_rid, RID p_texture) override {}