We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ebcd8 commit 8bf8a7dCopy full SHA for 8bf8a7d
demosys/effect_templates/raymarching_simple/effect.py
@@ -1,7 +1,8 @@
1
+import moderngl as mgl
2
+
3
from demosys.effects import effect
4
from demosys import geometry
5
from pyrr import Vector3
-from OpenGL import GL
6
import math
7
8
@@ -15,7 +16,7 @@ def __init__(self):
15
16
17
@effect.bind_target
18
def draw(self, time, frametime, target):
- GL.glEnable(GL.GL_DEPTH_TEST)
19
+ self.ctx.enable(mgl.DEPTH_TEST)
20
21
# Rotate plane 90 degrees, and move plane back so it will fit correctly on to screen
22
backoff = math.tan(math.radians(self.sys_camera.projection.fov / 2)) * (self.window_width / 2)
0 commit comments