2012-01-14 23:34:14 +00:00
|
|
|
|
|
|
|
float4 main_ps(float2 iTexCoord : TEXCOORD0,
|
|
|
|
float3 noiseCoord : TEXCOORD1,
|
2012-04-04 23:21:36 +00:00
|
|
|
uniform sampler2D RT : register(s0),
|
|
|
|
uniform sampler2D NormalMap : register(s1),
|
|
|
|
uniform sampler2D CausticMap : register(s2),
|
2012-01-14 23:34:14 +00:00
|
|
|
uniform float4 tintColour) : COLOR
|
|
|
|
{
|
2012-04-03 20:53:08 +00:00
|
|
|
float4 normal = tex2D(NormalMap, noiseCoord) * 2 - 1;
|
2012-01-14 23:34:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
return tex2D(RT, iTexCoord + normal.xy * 0.05) +
|
|
|
|
(tex2D(CausticMap, noiseCoord) / 5) +
|
|
|
|
tintColour ;
|
|
|
|
}
|