Open Sgeo opened 7 years ago
Hi, yes I also came to the conclusion that it is probably necessary to update renderobject.modelviewmatrix by multiplying in vr_modelviewmatrix (or replacing it by it) since it is used in many places. It is also probably necessary to update viewpoint.cameraspacematrix and inversecameraspacematrix. https://github.com/create3000/cobweb/blob/master/cobweb.js/cobweb/Components/Layering/X3DLayerNode.js#L372 is where inversecameraspacematrix gets turned into modelviewmatrix.
The following issues may be related to the hacky approach of separate vrViewMatrix in shaders + using X3DRenderObject to drive all VR:
Might be better to rework to have WebVR modify existing internal matrices.