aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-10-04 09:06:54 -0700
committer3gg <3gg@shellblade.net>2023-10-04 09:06:54 -0700
commit4aa5d6340d651542db5f24c2ae6713d1a48bbf19 (patch)
tree69370fb77fc44f321b1a36dd0a4a328a7b7effc1
parentc3fdc1fa310dbfe35e3457561a1c6198954b825a (diff)
Add note.
-rw-r--r--Spear/Render/Immediate.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Spear/Render/Immediate.hs b/Spear/Render/Immediate.hs
index 44fe7a6..3c5f6ad 100644
--- a/Spear/Render/Immediate.hs
+++ b/Spear/Render/Immediate.hs
@@ -96,7 +96,8 @@ immDrawTriangles vertices = do
96 applyUniforms (shader state) 96 applyUniforms (shader state)
97 renderGeometry (triangles state) 97 renderGeometry (triangles state)
98 98
99-- TODO: use triangle strips for quads. Will need a separate Geometry. 99-- NOTE: consider using triangle strips for quads. This will require a separate
100-- Geometry. Using Vector3 for everything currently makes this simple.
100immDrawQuads :: [(Vector3, Vector3, Vector3, Vector3)] -> Game ImmRenderState () 101immDrawQuads :: [(Vector3, Vector3, Vector3, Vector3)] -> Game ImmRenderState ()
101immDrawQuads quads = immDrawTriangles triangles 102immDrawQuads quads = immDrawTriangles triangles
102 where 103 where