Include tick counting code
This commit is contained in:
@@ -9,24 +9,6 @@ uniform float rotation;
|
||||
uniform vec2 translation;
|
||||
uniform mat4 worldMat;
|
||||
|
||||
mat4 tranMat = mat4
|
||||
( 1.0, 0.0, 0.0, 0.0
|
||||
, 0.0, 1.0, 0.0, 0.0
|
||||
, 0.0, 0.0, 1.0, 0.0
|
||||
, -translation.x, -translation.y, 0.0, 1.0
|
||||
) ;
|
||||
mat4 rotMat = mat4
|
||||
( cos(rotation), sin(-rotation), 0.0, 0.0
|
||||
, sin(rotation), cos(rotation), 0.0, 0.0
|
||||
, 0.0, 0.0, 1.0, 0.0
|
||||
, 0.0, 0.0, 0.0, 1.0
|
||||
) ;
|
||||
mat4 scalMat = mat4
|
||||
( 2*zoom/winSize.x, 0.0, 0.0, 0.0
|
||||
, 0.0, 2*zoom/winSize.y, 0.0, 0.0
|
||||
, 0.0, 0.0, 1.0, 0.0
|
||||
, 0.0, 0.0, 0.0, 1.0
|
||||
) ;
|
||||
void main()
|
||||
{
|
||||
gl_Position = worldMat * vec4(position.xyz,1);
|
||||
|
||||
Reference in New Issue
Block a user