public DeferredLighting(int width, int height) { shader = DeferredLightingShader.getInstance(); deferredLightingSceneTexture = new Texture2DNoFilterRGBA16F(width, height); }
public Texture2DNoFilterRGBA16F(int width, int height) { super(GL_TEXTURE_2D, width, height); bind(); allocateImage2D(GL_RGBA16F, GL_RGBA, GL_FLOAT); noFilter(); clampToEdge(); unbind(); }
public RefracReflecGBuffer(int width, int height) { albedoTexture = new Texture2DNoFilterRGBA16F(width, height); normalTexture = new Texture2DNoFilterRGBA32F(width, height); }
public TransparencyFbo(int width, int height) { GLTexture albedoTexture = new Texture2DNoFilterRGBA16F(width, height); GLTexture alphaTexture = new Texture2DNoFilterRGBA16F(width, height); GLTexture lightScatteringMask = new Texture2DNoFilterRGBA16F(width, height); GLTexture depthTexture = new Texture2DNoFilterDepth32F(width, height); attachments.put(Attachment.ALBEDO, albedoTexture); attachments.put(Attachment.ALPHA, alphaTexture); attachments.put(Attachment.LIGHT_SCATTERING, lightScatteringMask); attachments.put(Attachment.DEPTH, depthTexture); IntBuffer drawBuffers = BufferUtil.createIntBuffer(3); drawBuffers.put(GL_COLOR_ATTACHMENT0); drawBuffers.put(GL_COLOR_ATTACHMENT1); drawBuffers.put(GL_COLOR_ATTACHMENT2); drawBuffers.flip(); frameBuffer = new GLFramebuffer(); frameBuffer.bind(); frameBuffer.createColorTextureAttachment(albedoTexture.getHandle(),0); frameBuffer.createColorTextureAttachment(alphaTexture.getHandle(),1); frameBuffer.createColorTextureAttachment(lightScatteringMask.getHandle(),2); frameBuffer.createDepthTextureAttachment(depthTexture.getHandle()); frameBuffer.setDrawBuffers(drawBuffers); frameBuffer.checkStatus(); frameBuffer.unbind(); } }
public FXAA(){ shader = FXAAShader.getInstance(); fxaaSceneTexture = new Texture2DNoFilterRGBA16F(BaseContext.getWindow().getWidth(), BaseContext.getWindow().getHeight()); }
BaseContext.getWindow().getHeight(), 1); horizontalBloomBlurTexture_div2 = new Texture2DNoFilterRGBA16F(BaseContext.getWindow().getWidth()/2, BaseContext.getWindow().getHeight()/2); horizontalBloomBlurTexture_div2.bind();