mirror of https://github.com/bkaradzic/bgfx
parent
e7936efa6a
commit
c4f9d9e912
|
@ -29,10 +29,10 @@ void main()
|
|||
|
||||
float middleGray = u_tonemap.x;
|
||||
float whiteSqr = u_tonemap.y;
|
||||
float treshold = u_tonemap.z;
|
||||
float threshold = u_tonemap.z;
|
||||
float offset = u_tonemap.w;
|
||||
|
||||
rgb = max(vec3_splat(0.0), rgb - treshold) * middleGray / (lum + 0.0001);
|
||||
rgb = max(vec3_splat(0.0), rgb - threshold) * middleGray / (lum + 0.0001);
|
||||
rgb = reinhard2(rgb, whiteSqr);
|
||||
|
||||
gl_FragColor = toGamma(vec4(rgb, 1.0) );
|
||||
|
|
|
@ -20,7 +20,7 @@ void main()
|
|||
|
||||
float middleGray = u_tonemap.x;
|
||||
float whiteSqr = u_tonemap.y;
|
||||
float treshold = u_tonemap.z;
|
||||
float threshold = u_tonemap.z;
|
||||
float offset = u_tonemap.w;
|
||||
|
||||
float lp = Yxy.x * middleGray / (lum + 0.0001);
|
||||
|
|
Loading…
Reference in New Issue