Skip to content

Conversation

@lenemter
Copy link
Member

Third time's a charm

Rename .vert shaders to .frag because well, these are fragment shaders, not vertex shaders.

Fixes the strange offsets in shader code by correctly calculating offsets using clutter_actor_box_enlarge_for_effects which is mutter private api. This works with and without fractional scaling which was the flaw of my previous attempts

@lenemter lenemter mentioned this pull request Nov 20, 2025
7 tasks
@danirabbit danirabbit requested a review from a team November 21, 2025 17:01

private void update_clip_radius () requires (actor != null) {
var resource_scale = actor.get_resource_scale ();
set_uniform_value ("clip_radius", Utils.scale_to_int (clip_radius, monitor_scale / resource_scale));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we divide by the resource scale here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants