Implement multiple radial distortion rendering

This commit is contained in:
jgk
2021-07-10 14:04:01 +02:00
parent 1c519259a1
commit c63b293ea5
8 changed files with 75 additions and 22 deletions
+10
View File
@@ -187,6 +187,16 @@ pingPongBetween (fb1,to1) (fb2,to2) fs = do
textureBinding Texture2D $= Just to2
drawShader fs 4
drawTextureOnFramebuffer
:: FullShader
-> FramebufferObject
-> TextureObject
-> IO ()
drawTextureOnFramebuffer fs fbo to = do
bindFramebuffer Framebuffer $= fbo
textureBinding Texture2D $= Just to
drawShader fs 4
renderShader
:: Foldable f
=> FullShader