Work on distortion shader
This commit is contained in:
@@ -129,11 +129,11 @@ preloadRender = do
|
||||
lightingTextureShad <- makeSourcedShader "lighting/texture" [vert, frag]
|
||||
|
||||
distbo <- mglCreate glCreateBuffers
|
||||
let distbosize = sizeOf (0 :: Float) * 6 * 1024
|
||||
let distbosize = sizeOf (0 :: Float) * 8 * 1024
|
||||
glNamedBufferStorage distbo (fromIntegral distbosize) nullPtr GL_DYNAMIC_STORAGE_BIT
|
||||
glBindBufferBase GL_SHADER_STORAGE_BUFFER 9 distbo
|
||||
distptr <- mallocBytes distbosize
|
||||
let distvbo = VBO distbo distptr (sizeOf (0::Float) * 6)
|
||||
let distvbo = VBO distbo distptr (sizeOf (0::Float) * 8)
|
||||
barrelShad <- makeSourcedShader "texture/barrel" [vert,frag]
|
||||
|
||||
putStrLn "Setup floor VBO, shader"
|
||||
|
||||
Reference in New Issue
Block a user