Wonder-Technology / Wonder-Editor

Functional 3D Webgl Editor
https://yyc-git.github.io/wonder/index.html
Apache License 2.0
172 stars 46 forks source link

the gl viewport data is wrong #15

Closed AmyOrz closed 5 years ago

AmyOrz commented 6 years ago

environment

editor version

v0.10.0

engine version

v1.0.0-alpha.18.5

description

image

as the above screenshot, edit engine canvas's actual size is 927.5 291.41, but the setted viewport data(set when exec init pipeline) is 1855 427(they should be the same!)

reason

the setted viewport data is wrong

solution

the setted viewport data is full screen data, but it should: 1.set viewport after react dom didmout 2.the setted viewport data should be the canvas css width,height

yyc-git commented 5 years ago

fixed