1
0
Fork 0

Canvas GUI: set standard alpha blending as default inside windows

This commit is contained in:
Thomas Geymayer 2013-07-13 12:52:46 +02:00
parent c62829d41e
commit 4a6cbb8ff1

View file

@ -51,7 +51,15 @@ var Window = {
placement: {
type: "window",
id: me.get("id")
}
},
# Standard alpha blending
"blend-source-rgb": "src-alpha",
"blend-destination-rgb": "one-minus-src-alpha",
# Just keep current alpha (TODO allow using rgb textures instead of rgba?)
"blend-source-alpha": "zero",
"blend-destination-alpha": "one"
});
me._canvas.addEventListener("mousedown", func me.raise());