Skip to content

Conversation

@WillPower3309
Copy link
Member

@WillPower3309 WillPower3309 commented Jul 13, 2025

Moved the discarding logic into a separate shader and fixed the rotation issue

Will close #132 and #108

@WillPower3309 WillPower3309 marked this pull request as draft July 13, 2025 02:33
@WillPower3309 WillPower3309 linked an issue Jul 13, 2025 that may be closed by this pull request
@WillPower3309 WillPower3309 requested a review from ErikReider July 13, 2025 03:48
@WillPower3309 WillPower3309 marked this pull request as ready for review July 13, 2025 03:48
tex_options.discard_transparent = true;
fx_render_pass_add_texture(pass, &tex_options);

fx_render_pass_add_discard_transparent(pass, &tex_options->base);
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to just create a fx_render_pass_add_blur_texture or something which does what these lines + lines 959->969? Then we should be able to remove the stenciling right?

struct blur_shader blur2;
struct blur_effects_shader blur_effects;
struct discard_transparent_shader discard_transparent_rgba;
struct discard_transparent_shader discard_transparent_rgbx;
Copy link
Member Author

Choose a reason for hiding this comment

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

RGBX shouldn't be needed, since it has no opacity

void main() {
if (sample_texture().a == 0.0) {
discard;
return;
Copy link
Member Author

Choose a reason for hiding this comment

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

Not needed

@WillPower3309 WillPower3309 mentioned this pull request Nov 5, 2025
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.

blur_ignore_transparent cutout incorrect on rotated displays Move ignore transparent functionality to its own shader

3 participants