-
Notifications
You must be signed in to change notification settings - Fork 14
ignore transparent improvements #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| tex_options.discard_transparent = true; | ||
| fx_render_pass_add_texture(pass, &tex_options); | ||
|
|
||
| fx_render_pass_add_discard_transparent(pass, &tex_options->base); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed
Moved the discarding logic into a separate shader and fixed the rotation issue
Will close #132 and #108