mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fix some postprocess bugs
This commit is contained in:
parent
ba09af7cbb
commit
8eb825e25a
3 changed files with 4 additions and 4 deletions
|
@ -902,7 +902,7 @@ void FGLRenderBuffers::RenderEffect(const FString &name)
|
|||
GLTextureFBs[step.Output.Texture].Bind();
|
||||
break;
|
||||
|
||||
case PPTextureType::SceneNormal:
|
||||
case PPTextureType::SceneColor:
|
||||
BindSceneFB(false);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ Postprocess::Postprocess()
|
|||
Managers.Push(new PPCameraExposure());
|
||||
Managers.Push(new PPColormap());
|
||||
Managers.Push(new PPTonemap());
|
||||
Managers.Push(new PPAmbientOcclusion());
|
||||
}
|
||||
|
||||
Postprocess::~Postprocess()
|
||||
|
|
|
@ -68,12 +68,11 @@ layout(binding=1) uniform sampler2D PaletteLUT;
|
|||
|
||||
vec3 Tonemap(vec3 color)
|
||||
{
|
||||
/*ivec3 c = ivec3(clamp(color.rgb, vec3(0.0), vec3(1.0)) * 63.0 + 0.5);
|
||||
ivec3 c = ivec3(clamp(color.rgb, vec3(0.0), vec3(1.0)) * 63.0 + 0.5);
|
||||
int index = (c.r * 64 + c.g) * 64 + c.b;
|
||||
int tx = index % 512;
|
||||
int ty = index / 512;
|
||||
return texelFetch(PaletteLUT, ivec2(tx, ty), 0).rgb;*/
|
||||
return texture(PaletteLUT, TexCoord).rgb;
|
||||
return texelFetch(PaletteLUT, ivec2(tx, ty), 0).rgb;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue