From 9e84ff6f1b88b30b294df408a5290b3e7f0cc5c8 Mon Sep 17 00:00:00 2001 From: turanszkij Date: Sat, 26 Dec 2015 19:56:06 +0100 Subject: [PATCH] updated ribbontrail shader --- WickedEngine/trailPS.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WickedEngine/trailPS.hlsl b/WickedEngine/trailPS.hlsl index 38125d97f..e92c337e5 100644 --- a/WickedEngine/trailPS.hlsl +++ b/WickedEngine/trailPS.hlsl @@ -19,7 +19,7 @@ float4 main(VertexToPixel PSIn) : SV_TARGET float2 distortionCo; distortionCo.x = PSIn.dis.x/PSIn.dis.w/2.0f + 0.5f; distortionCo.y = -PSIn.dis.y/PSIn.dis.w/2.0f + 0.5f; - float2 distort = saturate( (xDistortionTexture.Sample(xSampler,PSIn.tex/float2(distortTexDim.x,1)).rg - float2(0.5f, 0.5f))*0.3f*PSIn.col.a ); + float2 distort = (xDistortionTexture.Sample(xSampler,PSIn.tex/float2(distortTexDim.x,1)).rg - float2(0.5f, 0.5f))*0.3f*PSIn.col.a; color.rgb += xRefracTexture.SampleLevel(xSampler,distortionCo+distort,0).rgb; return float4(color.rgb,1);