Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

Screen size on WebGl

$
0
0
How can I get screen size when running on WebGl? I have 1200x800 canvas. Screen.width returns 300 in browser and 1200 in editor. Screen.currentResolution is also wrong. This happens in WebGl on desktop and mobile browsers. Is there any reliable way to get screen size in pixels when running on WebGl?

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>