Remove bloom trails
This commit is contained in:
@@ -59,12 +59,16 @@ blinkAction
|
|||||||
-> World
|
-> World
|
||||||
-> World
|
-> World
|
||||||
blinkAction cr w = soundOnce teleSound
|
blinkAction cr w = soundOnce teleSound
|
||||||
. set radDistortion distortionBulge
|
. over radDistortion (distortionBulge ++)
|
||||||
. set (creatures . ix cid . crPos) p3
|
. set (creatures . ix cid . crPos) p3
|
||||||
. blinkShockwave cid p3
|
. blinkShockwave cid p3
|
||||||
$ inverseShockwaveAt cpos 40 2 2 2 w
|
$ inverseShockwaveAt cpos 40 2 2 2 w
|
||||||
where
|
where
|
||||||
distortionBulge = [(p3,p3 +.+ (40,0), p3 +.+ (0,40),0.5)]
|
distR = 120
|
||||||
|
distortionBulge =
|
||||||
|
[(p3,p3 +.+ (distR,0), p3 +.+ (0,distR),0.1)
|
||||||
|
,(cpos,cpos +.+ (distR,0), cpos +.+ (0,distR),1.9)
|
||||||
|
]
|
||||||
cid = _crID cr
|
cid = _crID cr
|
||||||
p1 = mouseWorldPos w
|
p1 = mouseWorldPos w
|
||||||
cpos = _crPos cr
|
cpos = _crPos cr
|
||||||
|
|||||||
+12
-12
@@ -79,26 +79,26 @@ doDrawing pdata w = do
|
|||||||
_ <- renderFoldable pdata $ picToLTree (Just 3) pic
|
_ <- renderFoldable pdata $ picToLTree (Just 3) pic
|
||||||
_ <- renderFoldable pdata $ picToLTree (Just 4) pic
|
_ <- renderFoldable pdata $ picToLTree (Just 4) pic
|
||||||
_ <- renderFoldable pdata $ picToLTree (Just 5) pic
|
_ <- renderFoldable pdata $ picToLTree (Just 5) pic
|
||||||
|
|
||||||
depthMask $= Enabled
|
depthMask $= Enabled
|
||||||
--bindFramebuffer Framebuffer $= (fst3 $ _fbo2 pdata)
|
|
||||||
bindFramebuffer Framebuffer $= (fst $ _fboFourth1 pdata)
|
bindFramebuffer Framebuffer $= (fst $ _fboFourth1 pdata)
|
||||||
viewport $= (Position 0 0, Size 300 300)
|
viewport $= (Position 0 0, Size 300 300)
|
||||||
depthFunc $= Just Always
|
depthFunc $= Just Always
|
||||||
--blend $= Disabled
|
|
||||||
textureBinding Texture2D $= Just (snd $ _fboBloom pdata)
|
textureBinding Texture2D $= Just (snd $ _fboBloom pdata)
|
||||||
|
|
||||||
|
--colorMask $= Color4 Disabled Disabled Disabled Enabled
|
||||||
|
--blendFunc $= (One,One)
|
||||||
|
--blendEquation $= FuncReverseSubtract
|
||||||
|
--drawShader (_fullscreenAlphaHalveShader pdata) 4
|
||||||
|
--colorMask $= Color4 Enabled Enabled Enabled Enabled
|
||||||
|
--blendEquation $= FuncAdd
|
||||||
|
|
||||||
--clear [ColorBuffer]
|
--clear [ColorBuffer]
|
||||||
--blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
--blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
||||||
--blendFuncSeparate $= ((Zero,One), (Zero,SrcAlpha))
|
blendFunc $= (One,Zero)
|
||||||
--drawShader (_fullscreenAlphaHalveShader pdata) 4
|
--textureBinding Texture2D $= Just (snd $ _fboFourth1 pdata)
|
||||||
--blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
|
||||||
--drawShader (_bloomBlurShader pdata) 4
|
|
||||||
--blendFuncSeparate $= ((Zero,One),(Zero,SrcAlpha))
|
|
||||||
blendFunc $= (One,One)
|
|
||||||
blendEquation $= FuncReverseSubtract
|
|
||||||
drawShader (_fullscreenAlphaHalveShader pdata) 4
|
|
||||||
blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
|
||||||
blendEquation $= FuncAdd
|
|
||||||
drawShader (_bloomBlurShader pdata) 4
|
drawShader (_bloomBlurShader pdata) 4
|
||||||
|
blendFunc $= (One,Zero)
|
||||||
replicateM_ 5 $ pingPongBetween (_fboFourth1 pdata) (_fboFourth2 pdata) (_bloomBlurShader pdata)
|
replicateM_ 5 $ pingPongBetween (_fboFourth1 pdata) (_fboFourth2 pdata) (_bloomBlurShader pdata)
|
||||||
--replicateM_ 5 $ pingPongBlur pdata
|
--replicateM_ 5 $ pingPongBlur pdata
|
||||||
--blend $= Enabled
|
--blend $= Enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user