git-svn-id: svn://db.shs.com.ru/libs@50 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-11-27 13:33:09 +00:00
parent 57d7920d8a
commit 8f3506b4a0
16 changed files with 215 additions and 25 deletions

View File

@@ -16,7 +16,7 @@ vec3 Uncharted2Tonemap(vec3 x) {
}
void main(void) {
vec3 inColor = texture(t0, qgl_FragTexture.xy).rgb;
vec3 inColor = texelFetch(t0, ivec2(gl_FragCoord.xy), 0).rgb;
inColor *= exposure;
float ExposureBias = 1;
vec3 curr = Uncharted2Tonemap(ExposureBias*inColor);