Eliminate banding in crepuscular rays

This commit is contained in:
James Canete 2012-03-21 11:07:23 +00:00
parent 245e8532cb
commit 170fb52af5
2 changed files with 2 additions and 2 deletions

View file

@ -517,7 +517,7 @@ void FBO_Init(void)
tr.quarterFbo[i] = FBO_Create(va("_quarter%d", i), tr.quarterImage[i]->width, tr.quarterImage[i]->height);
FBO_Bind(tr.quarterFbo[i]);
FBO_CreateBuffer(tr.quarterFbo[i], GL_RGBA8, 0, 0);
FBO_CreateBuffer(tr.quarterFbo[i], hdrFormat, 0, 0);
FBO_AttachTextureImage(tr.quarterImage[i], 0);
R_CheckFBO(tr.quarterFbo[i]);

View file

@ -2761,7 +2761,7 @@ void R_CreateBuiltinImages( void ) {
}
for (x = 0; x < 2; x++)
{
tr.quarterImage[x] = R_CreateImage2(va("*quarter%d", x), NULL, 512, 512, IMGFLAG_NO_COMPRESSION | IMGFLAG_CLAMPTOEDGE, GL_RGBA8);
tr.quarterImage[x] = R_CreateImage2(va("*quarter%d", x), NULL, 512, 512, IMGFLAG_NO_COMPRESSION | IMGFLAG_CLAMPTOEDGE, hdrFormat);
}
}