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

Revision 6281, 617 bytes checked in by mijoliim, 5 years ago (diff)

Wooo versionhallinta

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*6 + parameter1 / 700) / 30;
14        coords.y = cy + cos(cx*6 + parameter1 / 1000) / 20;
15
16    float4 color = tex2D(ScreenS, coords);
17       
18        //color.r = clamp(sin(cx*6+parameter1/100), 0, 1);
19        //color.b = clamp(cos(cx*6+parameter1/100), 0, 1);
20       
21
22        return color;
23}
24
25technique Technique1
26{
27    pass Pass1
28    {
29        PixelShader = compile ps_2_0 PixelShaderFunction();
30    }
31}
Note: See TracBrowser for help on using the repository browser.