void WaterFrameBuffer::initializeRefractionFrameBuffer() { refractionFrameBuffer = createFrameBuffer(); refractionTexture = createTextureAttachment(REFRACTION_WIDTH, REFRACTION_HEIGHT); refractionDepthTexture = createDepthTextureAttachment(REFRACTION_WIDTH, REFRACTION_HEIGHT); unbindCurrentFrameBuffer(); }
void WaterFrameBuffers::initialiseReflectionFrameBuffer() { reflectionFrameBuffer = createFrameBuffer(); reflectionTexture = createTextureAttachment(REFLECTION_WIDTH, REFLECTION_HEIGHT); reflectionDepthBuffer = createDepthBufferAttachment(REFLECTION_WIDTH, REFLECTION_HEIGHT); unbindCurrentFrameBuffer(); }