-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
GLES3: Color.WHITE or Color(1, 1, 1, 1) is black when used inside _draw() function #80396
Comments
Hint for tracking the issue: it works with no issue inside |
Can you please upload an MRP so that other users can try to reproduce this issue without having to fully recreate your test project from scratch? |
Could be blending related, as your image is full of Also I cannot replicate this on 4.2.dev from just these instructions |
Please provide an MRP:
|
did you try those line in 4.2.dev ? func _draw():
draw_rect(Rect2i(Vector2i.ZERO, img.get_size()), Color(1, 1, 1, 1), false)
func _draw():
draw_rect(Rect2i(Vector2i.ZERO, img.get_size()), Color.WHITE, false)
|
Yes I tried them, didn't cause your issue, so please provide an MRP to make this possible to test |
can you change the renderer to gles3 and try again ? those weird issues appears cuz it seems most of the tests was done using vulkan only. |
I used compatibility, I followed your steps as I said |
then it may have been fixed already in 4.2, i will provide a test scene just to make sure it was fixed then you can close the issue ^^ |
this line was what causing the issue, I'm sorry and am glad that KoBeWi has noticed it since the condition was a bit confusing. |
closing since it was produced because of running an unreviewed code that was not merged. sorry again -_- |
Can you please confirm it outside a custom build and on either |
Godot version
4.1.1-stable
System information
Windows 10
Issue description
this will draw black rect
while this will draw white rect
while this is weird but making circle draws Color(0.99, 1, 1, 1) makes also the _draw_rect to get fixed!
Steps to reproduce
use Color.WHITE inside any _draw() function or Color(1, 1, 1, 1) and it will draw black color instead of white color
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: