From 77c1dc6fda105434858244eb7969a7874e3fb8ea Mon Sep 17 00:00:00 2001 From: ns6089 <61738816+ns6089@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:09:50 +0300 Subject: [PATCH] Update src_assets/windows/assets/shaders/directx/include/convert_yuv420_packed_uv_ps_base.hlsl --- .../directx/include/convert_yuv420_packed_uv_ps_base.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_assets/windows/assets/shaders/directx/include/convert_yuv420_packed_uv_ps_base.hlsl b/src_assets/windows/assets/shaders/directx/include/convert_yuv420_packed_uv_ps_base.hlsl index 17924fc8f00..190c7a0ea14 100644 --- a/src_assets/windows/assets/shaders/directx/include/convert_yuv420_packed_uv_ps_base.hlsl +++ b/src_assets/windows/assets/shaders/directx/include/convert_yuv420_packed_uv_ps_base.hlsl @@ -25,7 +25,7 @@ float2 main_ps(vertex_t input) : SV_Target rgb += image.Sample(def_sampler, input.tex_right_center_left_top.zw).rgb; // top-left rgb += image.Sample(def_sampler, input.tex_right_center_left_bottom.xw).rgb; // bottom-right rgb += image.Sample(def_sampler, input.tex_right_center_left_bottom.zw).rgb; // bottom-left - rgb = CONVERT_FUNCTION(rgb * (1./12)); + rgb = CONVERT_FUNCTION(rgb * (1./8)); #elif defined(TOPLEFT_SUBSAMPLING) float3 rgb_top_left = image.Sample(def_sampler, input.tex_right_left_top.xz).rgb; float3 rgb_top_right = image.Sample(def_sampler, input.tex_right_left_top.yz).rgb;