Skip to content

WebGL screen not fully rendered on html canvas #472

Answered by asny
BladeTransformerLLC asked this question in Q&A
Discussion options

You must be logged in to vote

Most likely it's device pixel ratio. On some screens you have a multiplier (device pixel ratio) that takes you from logical pixels (the canvas size) to physical pixels (what three-d expects). You can query the device pixel ratio, then multiply that with your canvas width/height before constructing the screen render target.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BladeTransformerLLC
Comment options

Answer selected by BladeTransformerLLC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants