summaryrefslogtreecommitdiff
path: root/types/scene
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2024-02-27 18:05:58 +0100
committerGitHub <[email protected]>2024-02-27 18:05:58 +0100
commit7f0883b383b73af7bc68dcf8c2ee845c5eab5807 (patch)
treeff13a416200ac372d0ae303e5996bb9a22f819dd /types/scene
parent5b6862c981eb5541888f625cd93e7775cabe06b0 (diff)
[FX Renderer] Add blur (#30)
* Initial blur implementation * Added additional blur effects from SwayFX * Simplified blur pass functions to match the other pass functions * Minor fixes * Added support for optimized blur * tinywl: Don't set decoration values every frame * Updated public blur function docs * Simplified blur buffer management * Moved ignore transparent bool into a per buffer option * Clip the scene_buffer when blur is enabled * Added back corner and shadow checks in opaque_region function * Renamed fx_render_blur_options to fx_render_blur_pass_options * Fixed nits * Removed unused fx_framebuffer_bind_wlr_fbo function * Removed wlr_scene impl. Should be moved into future PR instead * Made blur impl independent of wlr_scene * Moved shader init back into fx_renderer.c * Renamed fx_framebuffer_get_or_create_bufferless to fx_framebuffer_get_or_create_custom
Diffstat (limited to 'types/scene')
-rw-r--r--types/scene/wlr_scene.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 266dc63..0545e70 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -1312,6 +1312,7 @@ static void scene_entry_render(struct render_list_entry *entry, const struct ren
.clip_box = &xdg_box,
.corner_radius = scene_buffer->corner_radius * data->scale,
};
+
fx_render_pass_add_texture(data->render_pass, &tex_options);
struct wlr_scene_output_sample_event sample_event = {
@@ -1919,8 +1920,8 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
}
struct fx_gles_render_pass *render_pass =
- fx_renderer_begin_buffer_pass(output->renderer, buffer,
- &(struct wlr_buffer_pass_options){
+ fx_renderer_begin_buffer_pass(output->renderer, buffer, output,
+ &(struct wlr_buffer_pass_options) {
.timer = timer ? timer->render_timer : NULL,
}
);