mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
rename, configurable gamma mode
This commit is contained in:
@@ -12,6 +12,5 @@ void main()
|
||||
vec2 texcoord = f_coords;
|
||||
vec3 hdr_color = texture(tex1, texcoord).xyz;
|
||||
|
||||
vec3 mapped = tonemap(hdr_color);
|
||||
out_color = vec4(mapped, 1.0);
|
||||
out_color = tonemap(vec4(hdr_color, 1.0));
|
||||
}
|
||||
|
||||
@@ -31,12 +31,7 @@ vec3 filmic(vec3 x)
|
||||
return filmicF(x) / filmicF(vec3(11.2f));
|
||||
}
|
||||
|
||||
vec3 tonemap(vec3 x)
|
||||
{
|
||||
return ACESFilm(x);
|
||||
}
|
||||
|
||||
vec4 tonemap(vec4 x)
|
||||
{
|
||||
return vec4(tonemap(x.rgb), x.a);
|
||||
return FBOUT(vec4(ACESFilm(x.rgb), x.a));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user