Skip to content
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

Subviewport premultiplied alpha still different #69276

Closed
AlexMitchellMus opened this issue Nov 28, 2022 · 1 comment
Closed

Subviewport premultiplied alpha still different #69276

AlexMitchellMus opened this issue Nov 28, 2022 · 1 comment
Labels

Comments

@AlexMitchellMus
Copy link
Contributor

Godot version

#5993209b

System information

Arch Linux, GeForce RTX 3090 driver: nvidia v: 520.56.06

Issue description

Alpha handling inside a subviewport still looks different to the same shader outside of one, even when using blend_premul_alpha

Example project recreated from #17574 with Godot4

Screenshot from 2022-11-28 12-41-43

Steps to reproduce

Place objects with alpha inside a subviewport, set the subviewport to transparent background.

Set objects shaders to use blend_premul_alpha

Compare the object outside of the subviewport to that inside.

Minimal reproduction project

premult_subviewport.zip

@AlexMitchellMus
Copy link
Contributor Author

Problem didn't exist, I had to set the size of the viewport correctly.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants