Tweak wall shadow geometry shader

This commit is contained in:
jgk
2021-08-19 14:57:23 +02:00
parent d7047c4b09
commit 743e190ddc
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -15,7 +15,7 @@ import Dodge.Creature.Action
import Geometry
import Picture
import qualified IntMapHelp as IM
import StrictHelp
--import StrictHelp
import Data.List
--import Data.Char
@@ -53,7 +53,6 @@ stateUpdate u cr w = case u (updateMovement cr) w of
| otherwise = stopSoundFrom (CrWeaponSound (_crID cr))
. over decorations addCorpse
. dropByState cr
--crBeforeDeath = colCrWall w cr
addCorpse = IM.insertNewKey
$ uncurryV translate (_crOldPos cr)
$ rotate (_crDir cr)
+1 -1
View File
@@ -71,9 +71,9 @@ createLightMap pdata lightPoints nWalls nSils nsurfVs = do
stencilOp $= (OpKeep,OpKeep,OpDecr)
currentProgram $= Just (_shaderProgram $ _lightingOccludeShader pdata)
drawShader (_lightingOccludeShader pdata) nWalls
currentProgram $= Just (_shaderProgram $ _lightingLineShadowShader pdata)
drawShader (_lightingLineShadowShader pdata) nSils
-- draw geometry surfaces
cullFace $= Just Back
colorMask $= Color4 Disabled Disabled Disabled Enabled