Why when I create texture with alpha = 0 and set it to box node the node is still visible?
Texture is created like this:
local w = 200
local h = 100
local red = string.char(0xff) … string.char(0x00) … string.char(0x00) … string.char(0x00)
gui.new_texture(“tx”, w, h, “rgba”, string.rep(red, w * h))
gui.set_texture(gui.get_node(“box”), “tx”)
There’s nothing except “box” node in the scene and node settings are default.
Test project attached:
test.zip (3.6 KB)
The result is this: