updated ribbontrail shader

This commit is contained in:
turanszkij
2015-12-26 19:56:06 +01:00
parent 7d45204b01
commit 9e84ff6f1b
+1 -1
View File
@@ -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);