source: 2015/26/MikkoL/JRPG/JRPG/JRPGContent/Wave.fx @ 6415

Revision 6415, 449 bytes checked in by mijoliim, 5 years ago (diff)
Line 
1float4x4 World;
2float4x4 View;
3float4x4 Projection;
4
5sampler ScreenS;
6float parameter1;
7
8float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
9{
10        float cx = coords.x;
11        float cy = coords.y;
12
13        coords.x = cx + cos(cy*3 + parameter1 / 700) / 35;
14
15    float4 color = tex2D(ScreenS, coords);
16        return color;
17}
18
19technique Technique1
20{
21    pass Pass1
22    {
23        PixelShader = compile ps_2_0 PixelShaderFunction();
24    }
25}
Note: See TracBrowser for help on using the repository browser.