Problem with gui.set_texture and alpha (SOLVED)

Hi guys!

I use image.load for change texture on gui object(code from example) and it change view from original PNG file. Help for fix it. Btw i try PNG extension and have same problem

I create test project for demonstrate what I mean. If need I give access.

Screen with problem

On left screen part it standart texture from atlas and on right it texture from image.load and gui.set_texture function

We premultiply alpha on images as a part of building an atlas. You can do this by setting the second argument in image.load to true (default is false). Perhaps that is the issue?

EDIT
Edited my post after reading your first post more carefully :slight_smile:

4 Likes

Yeah I use standart Box component in gui object. Not any special material

I try and write result here. Thank you.

Yes problem resolve. Thank you for help!

3 Likes