Skip to content

Uniforms_Widgets_Camera

Aiekick edited this page Mar 19, 2019 · 1 revision

when you use mouse on screen you manipulate the cam, without know it :)

get the cam mvp

  • uniform mat4(camera:mvp) name; get the cam mvp with params. replace << rotX,rotY:zoom:translateX,translateY >> by values
  • uniform mat4(camera:mvp:rotX,rotY:zoom:translateX,translateY) name;

get the cam proj

  • uniform mat4(camera:p) name;

get the cam view

  • uniform mat4(camera:v) name;

get the cam model

  • uniform mat4(camera:m) name;

get the cam normal matrix

  • uniform mat4(camera:nm) name;
Clone this wiki locally