aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/convolution-6x6_d3d.fx
diff options
context:
space:
mode:
authorAnton Fedchin <afedchin@ruswizards.com>2015-12-28 15:46:13 +0300
committerAnton Fedchin <afedchin@ruswizards.com>2015-12-30 22:40:15 +0300
commit5199354a6306fde667e0e19667554d5653f850e0 (patch)
treeeb65fff2216dac9b097aae425ee0670ffdbf6855 /system/shaders/convolution-6x6_d3d.fx
parente4784d699ef45804b93949327c7d90b37bd26380 (diff)
[VideoPlayer/VideoRenderers/Win] Added workaround to fix an issue with color range on some hardware which doesn't support color range conversion or whose drivers are crappy. Now we're using same technique for color range conversion which is used in UI instead of using video processor.
Diffstat (limited to 'system/shaders/convolution-6x6_d3d.fx')
-rw-r--r--system/shaders/convolution-6x6_d3d.fx3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/shaders/convolution-6x6_d3d.fx b/system/shaders/convolution-6x6_d3d.fx
index d6f1210ba2..d2f583a2c5 100644
--- a/system/shaders/convolution-6x6_d3d.fx
+++ b/system/shaders/convolution-6x6_d3d.fx
@@ -22,6 +22,7 @@ texture2D g_Texture;
texture2D g_KernelTexture;
float2 g_StepXY;
float2 g_viewPort;
+float2 g_colorRange;
SamplerState RGBSampler : IMMUTABLE
{
@@ -113,7 +114,7 @@ float4 CONVOLUTION6x6(in float2 TextureUV : TEXCOORD0) : SV_TARGET
getLine(ypos2.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b +
getLine(ypos2.z, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b;
- return float4(rgb, 1.0f);
+ return float4(g_colorRange.x + g_colorRange.y * saturate(rgb), 1.0);
}
technique11 SCALER_T