enkimute / ganja.js

:triangular_ruler: Javascript Geometric Algebra Generator for Javascript, c++, c#, rust, python. (with operator overloading and algebraic literals) -
MIT License
1.52k stars 107 forks source link

Straightforward way to get current camera view/projection matrix? #146

Closed micahscopes closed 2 years ago

micahscopes commented 2 years ago

I'd like to overlay a (webgl) graph canvas on top of an existing webgl2 context. I saw that I can get the camera parameters from canvas.options.camera. Is there a quick way to access the latest view/projection matrices that are passed into the CGA shader as uniforms?

micahscopes commented 2 years ago

I dealt with this here: #147