summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/tools/texturev/fs_texture.sc
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/tools/texturev/fs_texture.sc')
-rw-r--r--3rdparty/bgfx/tools/texturev/fs_texture.sc7
1 files changed, 5 insertions, 2 deletions
diff --git a/3rdparty/bgfx/tools/texturev/fs_texture.sc b/3rdparty/bgfx/tools/texturev/fs_texture.sc
index 07994ca9f6c..93bf089f30c 100644
--- a/3rdparty/bgfx/tools/texturev/fs_texture.sc
+++ b/3rdparty/bgfx/tools/texturev/fs_texture.sc
@@ -1,7 +1,7 @@
$input v_texcoord0, v_color0
/*
- * Copyright 2011-2018 Branimir Karadzic. All rights reserved.
+ * Copyright 2011-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
@@ -12,5 +12,8 @@ SAMPLER2D(s_texColor, 0);
void main()
{
vec4 color = texture2DLod(s_texColor, v_texcoord0.xy, u_textureLod);
- gl_FragColor = toEv(color * v_color0);
+ color.xyz = applyExposure(color.xyz);
+ color *= v_color0;
+
+ gl_FragColor = toOutput(color, u_outputFormat, u_sdrWhiteNits);
}