<?xml version="1.0" encoding="UTF-8"?>
<!--
    Requires 'smooth video' to work right.
    -->
<shader language="HLSL">
  <source><![CDATA[
  //These variables will get set automatically
texture rubyTexture;

sampler s0 = sampler_state { texture = <rubyTexture>; };

float4 EmbossPass( in float2 Tex : TEXCOORD0 ) : COLOR0
{
	float4 Color = tex2D( s0, Tex );
	    Color = tex2D( s0, Tex.xy);
        Color -= tex2D( s0, Tex.xy+0.0001)*30.0f;
        Color += tex2D( s0, Tex.xy-0.0001)*30.0f;
		Color = Color/1.2;
	return Color;
}




Technique T0
{
    pass p0 { PixelShader = compile ps_2_0 EmbossPass(); }
}
  ]]></source>
</shader>