Tweak clouds
This commit is contained in:
@@ -8,6 +8,7 @@ module Shader.Compile (
|
||||
makeShaderSized,
|
||||
makeShaderUsingVAO,
|
||||
setupVAO,
|
||||
setupEBO,
|
||||
setupVertexAttribPointer,
|
||||
) where
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ import Graphics.GL.Core45
|
||||
|
||||
pokeCloud :: Ptr Float -> Ptr GLushort -> (Int, Int) -> Cloud -> IO (Int, Int)
|
||||
pokeCloud vptr iptr (nv,ni) cl = do
|
||||
UV.imapM_ (pokeCloudVerx vptr cl nv) $ UV.fromList [(1, 1), (1, -1), (-1, -1), (-1, 1)]
|
||||
UV.imapM_ (pokeCloudIndex iptr nv ni) $ UV.fromList [0, 1, 2, 2, 1, 3]
|
||||
UV.imapM_ (pokeCloudVerx vptr cl nv) $ UV.fromList [(1, 1), (-1, 1), (-1, -1), (1, -1)]
|
||||
UV.imapM_ (pokeCloudIndex iptr nv ni) $ UV.fromList [0, 1, 2, 2, 0, 3]
|
||||
return (nv + 4, ni + 6)
|
||||
|
||||
pokeCloudVerx :: Ptr Float -> Cloud -> Int -> Int -> (Float, Float) -> IO ()
|
||||
|
||||
Reference in New Issue
Block a user