Remove bottom and mid layer pictures

This commit is contained in:
2024-10-01 00:37:31 +01:00
parent c3d112e52e
commit a98ec80f59
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ data Verx = Verx
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data Layer
= BottomLayer
| MidLayer
| BloomLayer
-- = BottomLayer
-- | MidLayer
= BloomLayer
| BloomNoZWrite
| DebugLayer
| FixedCoordLayer
+4 -2
View File
@@ -4,6 +4,7 @@ module Shader.Bind (
bufferEBO,
) where
import Picture.Data
import Control.Lens
import Control.Monad.Primitive
import qualified Data.Vector.Fusion.Stream.Monadic as VFSM
@@ -38,10 +39,11 @@ bufferShaderLayers shads counts = MV.imapM_ f shads
f i shad = do
let theVBO = snd shad
stride = _vboVertexBytes theVBO `div` floatSize
VFSM.mapM_ (g stride theVBO) $ VFSM.enumFromStepN 0 1 6 -- [0..5]
--VFSM.mapM_ (g stride theVBO) $ VFSM.enumFromStepN 0 1 6 -- [0..5]
VFSM.mapM_ (g stride theVBO) $ VFSM.enumFromStepN 0 1 numLayers -- [0..5]
where
g stride theVBO lay = do
numVs <- UMV.unsafeRead counts $ lay * 6 + i
numVs <- UMV.unsafeRead counts $ lay * numLayers + i
glNamedBufferSubDataH
(_vboName theVBO)
(fromIntegral $ floatSize * stride * numSubElements * lay)