playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
160 stars 28 forks source link

Published builds always have transparent canvas enabled when the gfx device is created #1138

Closed yaustar closed 7 months ago

yaustar commented 7 months ago

Publish any build and add a breakpoint in __start__.js here

image

Inspect the value of gfxOptions.alpha and notice that it is always true. This is because deviceOptions.transparentCanvas / window.CONTEXT_OPTIONS.transparentCanvas is undefined.

This should be deviceOptions.alpha as seen here

image

For end users, if you are self hosting, you can edit the __start__.js file to use deviceOptions.alpha instead. ie

image
Maksims commented 7 months ago

Just to mention, having no alpha, would break WebXR AR.