Commit before removing geometry shader from ellipses

This commit is contained in:
2025-11-20 16:30:41 +00:00
parent bbb682242d
commit cb64be4eeb
7 changed files with 117 additions and 101 deletions
+8 -2
View File
@@ -14,6 +14,12 @@ drawShaderLay l countsVector shadIn fs = do
glUseProgram (_shaderUINT $ fst fs)
glBindVertexArray $ fs ^. _1 . shaderVAO . unVAO
glDrawArrays
(_unPrimitiveMode $ _shaderPrimitive $ fst fs)
GL_TRIANGLES
(fromIntegral $ l * numSubElements)
(fromIntegral i)
(drawCountMod shadIn i)
--(fromIntegral i)
drawCountMod :: Int -> Int -> GLsizei
drawCountMod i n
| i == 3 = fromIntegral n -- modifies ellipse draw count
| otherwise = fromIntegral n