turbulenz/turbulenz_engine

Looks like camera.aspectRatio doesn't seem to be changing?

henrytseng opened this issue · 1 comments

Here's my relevant code in my rendering function:

      camera.aspectRatio = stage.aspectRatio();    // 2.73232

      // 
      camera.lookAt(md.v3BuildZero(),
                md.v3Build(0, 1, 0),
                md.v3Build(0, 20, 100));

      camera.updateViewMatrix();

      camera.updateViewProjectionMatrix();

Nevermind solved it. Should be using the method camera.updateProjectionMatrix() instead