38 lines
782 B
HLSL
38 lines
782 B
HLSL
sampler uImage0 : register(s0);
|
|
sampler uImage1 : register(s1);
|
|
sampler uImage2 : register(s2);
|
|
sampler uImage3 : register(s3);
|
|
float3 uColor;
|
|
float3 uSecondaryColor;
|
|
float2 uScreenResolution;
|
|
float2 uScreenPosition;
|
|
float2 uTargetPosition;
|
|
float2 uDirection;
|
|
float uOpacity;
|
|
float uTime;
|
|
float uIntensity;
|
|
float uProgress;
|
|
float2 uImageSize1;
|
|
float2 uImageSize2;
|
|
float2 uImageSize3;
|
|
float2 uImageOffset;
|
|
float uSaturation;
|
|
float4 uSourceRect;
|
|
float2 uZoom;
|
|
|
|
float4 FilterMyShader(float2 coords : TEXCOORD0) : COLOR0
|
|
{
|
|
float2 newCoords;
|
|
newCoords.x = coords.x;
|
|
newCoords.y = 1 - coords.y;
|
|
float4 color = tex2D(uImage0, newCoords);
|
|
return color;
|
|
}
|
|
|
|
technique Technique1
|
|
{
|
|
pass FlipTheScreen
|
|
{
|
|
PixelShader = compile ps_2_0 FilterMyShader();
|
|
}
|
|
} |