Canvas GUI: set standard alpha blending as default inside windows
This commit is contained in:
parent
c62829d41e
commit
4a6cbb8ff1
1 changed files with 9 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue