diff --git a/Data/User/Shaders/mad_world.txt b/Data/User/Shaders/mad_world.txt new file mode 100644 index 0000000000..c4870ce0e5 --- /dev/null +++ b/Data/User/Shaders/mad_world.txt @@ -0,0 +1,18 @@ +uniform samplerRECT samp0 : register(s0); + +void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) +{ + float4 emboss = (texRECT(samp0, uv0+1).rgba - texRECT(samp0, uv0-1).rgba); + emboss -= (texRECT(samp0, uv0+float2(1,-1)).rgba - texRECT(samp0, uv0+float2(-1,1)).rgba); + float4 color = texRECT(samp0, uv0).rgba; + if (color.r > 0.9 && color.b + color.b < 0.2) + ocol0 = float4(1,0,0,0); + else { + color += emboss; + float4 bright = dot(color.rgb, float3(0.3, 0.5, 0.2)); + if (bright > 0.5) + ocol0 = float4(1,1,1,1); + else + ocol0 = float4(0,0,0,0); + } +}