Remove mipmaps from downscaled texture framebuffers
This commit is contained in:
@@ -206,9 +206,11 @@ setupTextureFramebuffer x y = do
|
|||||||
fboTO <- genObjectName
|
fboTO <- genObjectName
|
||||||
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 $= ((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
|
||||||
fboStatus <- framebufferStatus Framebuffer
|
fboStatus <- framebufferStatus Framebuffer
|
||||||
print fboStatus
|
print fboStatus
|
||||||
|
|||||||
Reference in New Issue
Block a user