Actually RH requires higher depth for alpha

This commit is contained in:
Vincent Lejeune 2014-09-21 19:46:36 +02:00
parent 4672492269
commit 9552a73ea8

View File

@ -245,9 +245,9 @@ RTT::RTT(size_t width, size_t height)
somevector.push_back(RSM_Normal); somevector.push_back(RSM_Normal);
m_RSM = new FrameBuffer(somevector, RSM_Depth, 1024, 1024, true); m_RSM = new FrameBuffer(somevector, RSM_Depth, 1024, 1024, true);
RH_Red = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGB10_A2, GL_RGBA, GL_FLOAT); RH_Red = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGBA16F, GL_RGBA, GL_FLOAT);
RH_Green = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGB10_A2, GL_RGBA, GL_FLOAT); RH_Green = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGBA16F, GL_RGBA, GL_FLOAT);
RH_Blue = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGB10_A2, GL_RGBA, GL_FLOAT); RH_Blue = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGBA16F, GL_RGBA, GL_FLOAT);
somevector.clear(); somevector.clear();
somevector.push_back(RH_Red); somevector.push_back(RH_Red);