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

Polygon2D opacity doesn't work. #5151

Closed
sergicollado opened this issue Jun 10, 2016 · 10 comments
Closed

Polygon2D opacity doesn't work. #5151

sergicollado opened this issue Jun 10, 2016 · 10 comments

Comments

@sergicollado
Copy link

commit 00bfdc8
OpenSuse 42.1 KDE x86_64 Intel Core i5-4670 CPU @ 3.40GHz

In Polygon2D node opacity parameter doesn't work.

@rgrams
Copy link

rgrams commented Jun 11, 2016

+1. Same on Windows 7, various builds.

@reduz
Copy link
Member

reduz commented Jun 11, 2016

aware of this, but to fix requires many hacks to a renderer that will be rewritten after 2.1 is out, so leaving this for then

@Zylann
Copy link
Contributor

Zylann commented Jul 13, 2016

Argh I'll have to drop all my polygons now and use sprites :p

@rgrams
Copy link

rgrams commented Jul 13, 2016

You can easily get around this bug with a shader (though you won't get quite the same ease of use). Just do:

uniform float opacity = 1.0;
COLOR.a *= opacity;

If you're not using any other shaders you can put it on any node and set it's children to "Use Parent" material so you can control multiple nodes at once, like regular opacity.

@akien-mga
Copy link
Member

See also #5544 and #6060 which are duplicates of this one. #6060 seems to infer that this might be a regression in 2.1.

@ghost
Copy link

ghost commented Sep 10, 2016

Encountered same problem trying to make some UI elements. Now I'm REALLY waiting on 3.0

@bojidar-bg
Copy link
Contributor

Whats the status of this in current master (assuming polygon2d still works...)?

@Zylann
Copy link
Contributor

Zylann commented Mar 28, 2017

Not sure if we can even see it given this #7840

@bojidar-bg
Copy link
Contributor

@Zylann Ah, good, so this issue can't be reproduced anymore, so we can close it? (jk)

Well, then, I guess it is blocked by #7840...

@reduz
Copy link
Member

reduz commented Aug 5, 2017

this was fixed in 3.0 and #7840 solved, so closing this

@reduz reduz closed this as completed Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants