New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL Mirror Example Artifacts #11969
Comments
Indeed. |
The main camera's aspect ratio is never copied to the mirror camera. // "examples/Mirror.js" (lines 142-146)
mirrorCamera.near = camera.near;
mirrorCamera.far = camera.far;
mirrorCamera.updateMatrixWorld();
mirrorCamera.updateProjectionMatrix(); Should be changed to: mirrorCamera.updateMatrixWorld();
mirrorCamera.projectionMatrix.copy(camera.projectionMatrix); I'll send a PR for this later! Another problem with the mirror (and the planar ocean) is that it doesn't seem to work when the |
@vanruesc I was messing with the code so I implemented it directly. Many thanks! |
@mrdoob If you are still messing around, I think there is room for simplification...
|
@WestLangley Thanks! |
Artifacts may be reproduced by zooming in and moving the camera a bit.
https://threejs.org/examples/webgl_mirror.html
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: