RogueLegacy1/RogueCastle/Shaders/SceneBlend.fx
Ethan Lee 01f2eb5307
Some checks failed
CI / Linux (push) Has been cancelled
Add shader source!
2024-11-19 12:00:36 -05:00

38 lines
No EOL
788 B
HLSL

float2 halfPixel;
sampler2D Scene: register(s0){
AddressU = Mirror;
AddressV = Mirror;
};
texture OrgScene;
sampler2D orgScene = sampler_state
{
Texture = <OrgScene>;
AddressU = CLAMP;
AddressV = CLAMP;
};
float4 BlendPS(float2 texCoord : TEXCOORD0 ) : COLOR0
{
texCoord -= halfPixel;
float4 col = tex2D(orgScene,texCoord) * tex2D(Scene,texCoord);
return col;
}
float4 AditivePS(float2 texCoord : TEXCOORD0 ) : COLOR0
{
texCoord -= halfPixel;
float4 col = tex2D(orgScene,texCoord) + tex2D(Scene,texCoord);
return col;
}
technique Blend
{
pass p0
{
PixelShader = compile ps_2_0 BlendPS();
}
}
technique Aditive
{
pass p0
{
PixelShader = compile ps_2_0 AditivePS();
}
}