erichlof/THREE.js-PathTracing-Renderer

Some advise about WindowResize

RenderTool opened this issue · 1 comments

Hello!thank you very much.
Now, I will give you some suggestions about screen adaptation on mobile app.
Wechat on the iPhone doesn't seem to support canvas very well. If you use window.innerheight and window.innerwidth control canvas size, the canvas height collapses when you rotate the phone screen. I changed to :
SCREEN_WIDTH = document.body.clientWidth;
SCREEN_HEIGHT = document.body.clientHeight;
will back to normal.
image
image

Threejs also has this problem.

@q750831855
Hello again! Thank you for the suggestion! I have taken your advice: commit

I also put in a credit to you in the updated source file. :-)

Thanks again,
-Erich