summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/scale_PS.hlsl
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-19 11:38:51 +0100
committeraap <aap@papnet.eu>2021-01-19 11:38:51 +0100
commit8baae4c77ff85e6fb1cacd428162804080998069 (patch)
tree63c90940449949019d601f09421e234d734aa576 /src/extras/shaders/scale_PS.hlsl
parentfix handbrake (diff)
downloadre3-8baae4c77ff85e6fb1cacd428162804080998069.tar
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.gz
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.bz2
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.lz
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.xz
re3-8baae4c77ff85e6fb1cacd428162804080998069.tar.zst
re3-8baae4c77ff85e6fb1cacd428162804080998069.zip
Diffstat (limited to 'src/extras/shaders/scale_PS.hlsl')
-rw-r--r--src/extras/shaders/scale_PS.hlsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/shaders/scale_PS.hlsl b/src/extras/shaders/scale_PS.hlsl
index 92466e94..54da9c82 100644
--- a/src/extras/shaders/scale_PS.hlsl
+++ b/src/extras/shaders/scale_PS.hlsl
@@ -12,8 +12,8 @@ float4 colorscale : register(c1);
float4 main(VS_out input) : COLOR
{
float4 color = input.Color;
- color *= tex2D(tex0, input.TexCoord0.xy);
- color *= colorscale;
+ color *= tex2D(tex0, input.TexCoord0.xy)*colorscale;
+ color.rgb = clamp(color.rgb, 0.0, 1.0);
color.rgb = lerp(fogColor.rgb, color.rgb, input.TexCoord0.z);
return color;
}