Real-time PathTracing with global illumination and progressive rendering, all on top of the Three.js WebGL framework. Click here for Live Demo: https://erichlof.github.io/THREE.js-PathTracing-Renderer/Geometry_Showcase.html
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.
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.
Threejs also has this problem.