Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code:
- // WHAT A WASTE OF GPU.
- texture tex1;
- float2 rcpres;
- //float Timer;
- sampler s0 = sampler_state { texture = <tex1>; };
- float4 Pass0( in float2 Tex : TEXCOORD0 ) : COLOR0
- {
- float4 Base = tex2D( s0, Tex.xy );
- return Base;
- }
- float4 Pass1( in float2 Tex : TEXCOORD0 ) : COLOR0
- {
- float4 Base = tex2D( s0, Tex.xy );
- float4 Color = Base;
- Color += tex2D( s0, Tex.xy+float2(0,0.0050) )/8;
- Color += tex2D( s0, Tex.xy-float2(0,0.0050) )/8;
- Color += tex2D( s0, Tex.xy+float2(0.0050,0) )/8;
- Color += tex2D( s0, Tex.xy-float2(0.0050,0) )/8;
- Color += tex2D( s0, Tex.xy+float2(0.0025,0.0025) )/8;
- Color += tex2D( s0, Tex.xy-float2(0.0025,0.0025) )/8;
- Color += tex2D( s0, Tex.xy+float2(-0.0025,0.0025) )/8;
- Color += tex2D( s0, Tex.xy-float2(-0.0025,0.0025) )/8;
- Color += round(Color)/3;
- Base += tex2D( s0, Tex.xy+float2(0,0.0050) )/8;
- Base += tex2D( s0, Tex.xy-float2(0,0.0050) )/8;
- Base += tex2D( s0, Tex.xy+float2(0.0050,0) )/8;
- Base += tex2D( s0, Tex.xy-float2(0.0050,0) )/8;
- Base += tex2D( s0, Tex.xy+float2(0.0025,0.0025) )/8;
- Base += tex2D( s0, Tex.xy-float2(0.0025,0.0025) )/8;
- Base += tex2D( s0, Tex.xy+float2(-0.0025,0.0025) )/8;
- Base += tex2D( s0, Tex.xy-float2(-0.0025,0.0025) )/8;
- Base.rgb = (Base.r + Base.g + Base.b)/3;
- Base.rgb = round(Base.rgb);
- Base = Base/1.5;
- return (Color * Base)/1.5 + (Color/4);
- }
- Technique T0
- {
- pass p0 { PixelShader = compile ps_3_0 Pass0(); }
- pass p1 { PixelShader = compile ps_3_0 Pass1(); }
- }
Add Comment
Please, Sign In to add comment