Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float4x4 MatrixTransform;
- void SpriteVertexShader(inout float4 vColor : COLOR0, inout float2 texCoord : TEXCOORD0, inout float4 position : POSITION0)
- {
- position = mul(position, MatrixTransform);
- }
- uniform extern texture ScreenTexture;
- sampler ScreenS = sampler_state
- {
- Texture = <ScreenTexture>;
- };
- float4 PixelShaderFunction(float2 texCoord: TEXCOORD0) : COLOR0
- {
- float4 color = tex2D(ScreenS, texCoord);
- //Add shader here
- return color;
- }
- technique Technique1
- {
- pass Pass1
- {
- VertexShader = compile vs_3_0 SpriteVertexShader();
- PixelShader = compile ps_3_0 PixelShaderFunction();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement