Skip to content

Commit

Permalink
Remove glm from demo (not really needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
aforren1 committed Dec 21, 2021
1 parent 61da409 commit f034b4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import moderngl as mgl
import glfw
import numpy as np
import glm
from patlas import AtlasPacker

image_vert = """
Expand Down Expand Up @@ -74,12 +73,12 @@
while not glfw.window_should_close(win):
ctx.clear(0.2, 0.1, 0.1)
# cat 1
prog['offset'].write(glm.vec2(1, 1))
prog['offset'] = 1, 1
vbo['texcoord'] = atex
buf.write(vbo)
vao.render(mgl.TRIANGLE_STRIP)
# cat 2
prog['offset'].write(glm.vec2(0.5, 0))
prog['offset'] = 0.5, 0
vbo['texcoord'] = ktex
buf.write(vbo)
vao.render(mgl.TRIANGLE_STRIP)
Expand Down

0 comments on commit f034b4d

Please sign in to comment.