1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

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

@@ -476,7 +476,6 @@ public:
};
virtual 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) = 0;
virtual void canvas_debug_viewport_shadows(Light *p_lights_with_shadow) = 0;
struct LightOccluderInstance {
bool enabled;