Disable face culling on fixed layer, for aim sweep reverse winding

This commit is contained in:
2026-01-02 11:34:45 +00:00
parent 804e4eb1e2
commit 3b4e24b74f
3 changed files with 9 additions and 11 deletions
+1 -3
View File
@@ -77,8 +77,6 @@ doDrawing' win pdata u = do
(0, 0, 0)
ws
)
UMV.forM_ pokeCounts $ print
print "--"
nCloudVs' <- -- foldM (pokeCloud $ pdata ^. cloudVBO . vboPtr) 0 (w ^. cWorld . lWorld . clouds)
V.foldM'
(pokeCloud (pdata ^. cloudVBO . vboPtr))
@@ -416,12 +414,12 @@ doDrawing' win pdata u = do
glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA -- assume premultiplied alpha
glDisable GL_CULL_FACE
renderLayer DebugLayer shadV pokeCounts
glEnable GL_CULL_FACE
withArray (scaleMatrix (2 / windowXFloat cfig) (2 / windowYFloat cfig)) $
glNamedBufferSubData (pdata ^. matUBO) 0 64
glDepthMask GL_TRUE
with 1 $ glClearNamedFramebufferfv 0 GL_DEPTH 0
renderLayer FixedCoordLayer shadV pokeCounts
glEnable GL_CULL_FACE
checkGLError "during doDrawing'"
SDL.glSwapWindow win
+1 -1
View File
@@ -291,7 +291,7 @@ aimDelaySweep u = fold $ do
drawAimSweep :: Creature -> World -> Picture
drawAimSweep cr w = fold $ do
a <- safeArgV (mwp -.- p)
a <- safeArgV (mwp - p)
return $
uncurryV translate (worldPosToScreen campos p) $
arcFull