diff options
Diffstat (limited to '3rdparty/bgfx/tools/texturev/fs_texture_cube.sc')
-rw-r--r-- | 3rdparty/bgfx/tools/texturev/fs_texture_cube.sc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/3rdparty/bgfx/tools/texturev/fs_texture_cube.sc b/3rdparty/bgfx/tools/texturev/fs_texture_cube.sc index 091bffd5169..4aa106ec9b1 100644 --- a/3rdparty/bgfx/tools/texturev/fs_texture_cube.sc +++ b/3rdparty/bgfx/tools/texturev/fs_texture_cube.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 */ @@ -16,5 +16,8 @@ void main() dir = normalize(mul(u_mtx, vec4(dir, 0.0) ).xyz); vec4 color = textureCubeLod(s_texColor, dir, u_textureLod); - gl_FragColor = toEv(color * v_color0); + color.xyz = applyExposure(color.xyz); + color *= v_color0; + + gl_FragColor = toOutput(color, u_outputFormat, u_sdrWhiteNits); } |