diff options
author | 3gg <3gg@shellblade.net> | 2023-10-04 09:06:54 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-10-04 09:06:54 -0700 |
commit | 4aa5d6340d651542db5f24c2ae6713d1a48bbf19 (patch) | |
tree | 69370fb77fc44f321b1a36dd0a4a328a7b7effc1 | |
parent | c3fdc1fa310dbfe35e3457561a1c6198954b825a (diff) |
Add note.
-rw-r--r-- | Spear/Render/Immediate.hs | 3 |
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. | ||
100 | immDrawQuads :: [(Vector3, Vector3, Vector3, Vector3)] -> Game ImmRenderState () | 101 | immDrawQuads :: [(Vector3, Vector3, Vector3, Vector3)] -> Game ImmRenderState () |
101 | immDrawQuads quads = immDrawTriangles triangles | 102 | immDrawQuads quads = immDrawTriangles triangles |
102 | where | 103 | where |