Allow transparent window background

This commit is contained in:
Joshua Granick
2016-07-07 10:45:38 -07:00
parent 4ef38bd895
commit b212acdbf3
6 changed files with 14 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ class HTML5Renderer {
var options = {
alpha: false,
alpha: (Reflect.hasField (parent.window.config, "background") && parent.window.config.background == null) ? true : false,
antialias: Reflect.hasField (parent.window.config, "antialiasing") ? parent.window.config.antialiasing > 0 : false,
depth: Reflect.hasField (parent.window.config, "depthBuffer") ? parent.window.config.depthBuffer : true,
premultipliedAlpha: false,