Hi, I am developping a reflect material on Cesium, I need to set the camera view frustum’s near plane to be arbitrary plane, for example:
figure from http://www.terathon.com/lengyel/Lengyel-Oblique.pdf
Is it possible to do that on Cesium?
Thanks
Hi, I am developping a reflect material on Cesium, I need to set the camera view frustum’s near plane to be arbitrary plane, for example:
figure from http://www.terathon.com/lengyel/Lengyel-Oblique.pdf
Is it possible to do that on Cesium?
Thanks
That sounds pretty cool! You can change the near and far planes for the camera here: https://cesium.com/docs/cesiumjs-ref-doc/Camera.html?classFilter=camera
If you want to rotate the plane, I think you may need to modify the source code. I’d take a look at the camera class here: https://github.com/CesiumGS/cesium/blob/master/Source/Scene/Camera.js
Note that there is an orthographic frustum you can switch to if that’s your goal, see: https://sandcastle.cesium.com/index.html?src=Projection.html
Thanks your reply.
Yeap, it needs to modify the source code, so that I can use custom projection matrix