Remove mipmaps from framebuffers with shared renderbuffer
This commit is contained in:
@@ -86,6 +86,7 @@ doDrawing pdata w = do
|
|||||||
depthFunc $= Just Always
|
depthFunc $= Just Always
|
||||||
--blend $= Disabled
|
--blend $= Disabled
|
||||||
textureBinding Texture2D $= Just (snd $ _fboBloom pdata)
|
textureBinding Texture2D $= Just (snd $ _fboBloom pdata)
|
||||||
|
textureFilter Texture2D $= ((Linear',Nothing) , Linear')
|
||||||
--clear [ColorBuffer]
|
--clear [ColorBuffer]
|
||||||
--blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
--blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
||||||
--blendFuncSeparate $= ((Zero,One), (Zero,SrcAlpha))
|
--blendFuncSeparate $= ((Zero,One), (Zero,SrcAlpha))
|
||||||
|
|||||||
@@ -187,8 +187,10 @@ newFramebufferGivenStencil rboName = do
|
|||||||
toName <- genObjectName
|
toName <- genObjectName
|
||||||
textureBinding Texture2D $= Just toName
|
textureBinding Texture2D $= Just toName
|
||||||
texImage2D Texture2D NoProxy 0 RGBA8 (TextureSize2D 800 600) 0 (PixelData RGBA UnsignedByte nullPtr)
|
texImage2D Texture2D NoProxy 0 RGBA8 (TextureSize2D 800 600) 0 (PixelData RGBA UnsignedByte nullPtr)
|
||||||
textureFilter Texture2D $= ((Linear',Just Linear') , Linear')
|
-- don't need mipmaps
|
||||||
generateMipmap' Texture2D
|
textureFilter Texture2D $= ((Linear',Nothing) , Linear')
|
||||||
|
--textureFilter Texture2D $= ((Linear',Just Linear') , Linear')
|
||||||
|
--generateMipmap' Texture2D
|
||||||
framebufferTexture2D Framebuffer (ColorAttachment 0) Texture2D toName 0
|
framebufferTexture2D Framebuffer (ColorAttachment 0) Texture2D toName 0
|
||||||
framebufferRenderbuffer Framebuffer DepthStencilAttachment Renderbuffer rboName
|
framebufferRenderbuffer Framebuffer DepthStencilAttachment Renderbuffer rboName
|
||||||
fboStatus <- framebufferStatus Framebuffer
|
fboStatus <- framebufferStatus Framebuffer
|
||||||
@@ -207,8 +209,8 @@ setupTextureFramebuffer x y = do
|
|||||||
textureBinding Texture2D $= Just fboTO
|
textureBinding Texture2D $= Just fboTO
|
||||||
texImage2D Texture2D NoProxy 0 RGBA8 (TextureSize2D x y) 0 (PixelData RGBA UnsignedByte nullPtr)
|
texImage2D Texture2D NoProxy 0 RGBA8 (TextureSize2D x y) 0 (PixelData RGBA UnsignedByte nullPtr)
|
||||||
--textureFilter Texture2D $= ((Linear',Just Linear') , Linear')
|
--textureFilter Texture2D $= ((Linear',Just Linear') , Linear')
|
||||||
|
textureFilter Texture2D $= ((Nearest,Nothing) , Nearest)
|
||||||
--textureFilter Texture2D $= ((Linear',Nothing) , Linear')
|
--textureFilter Texture2D $= ((Linear',Nothing) , Linear')
|
||||||
textureFilter Texture2D $= ((Linear',Nothing) , Nearest)
|
|
||||||
--textureFilter Texture2D $= ((Nearest,Just Nearest) , Nearest)
|
--textureFilter Texture2D $= ((Nearest,Just Nearest) , Nearest)
|
||||||
--generateMipmap' Texture2D
|
--generateMipmap' Texture2D
|
||||||
framebufferTexture2D Framebuffer (ColorAttachment 0) Texture2D fboTO 0
|
framebufferTexture2D Framebuffer (ColorAttachment 0) Texture2D fboTO 0
|
||||||
|
|||||||
Reference in New Issue
Block a user