|
ShaderSpec
This will contain info about ShaderLib and some issue with usage of Shazzam.
The shaderTo create shaders efficiently one can use Shazzam Shader Editor (http://blog.shazzam-tool.com/). To create shader library one should have installed (http://wpf.codeplex.com/releases/view/14962). sampler2D input : register(s0);
// new HLSL shader
/// <summary>Explain the purpose of this variable.</summary>
/// <minValue>0/minValue>
/// <maxValue>1</maxValue>
/// <defaultValue>1</defaultValue>
float LevelValue : register(C0);
float4 main(float2 uv : TEXCOORD) : COLOR
{
float4 Color= tex2D( input , uv.xy);
float gray = Color.r * 0.3 + Color.g * 0.59 + Color.b * 0.11;
float4 result;
float desat = LevelValue;
result.r = (Color.r - gray) * desat + gray;
result.g = (Color.g - gray) * desat + gray;
result.b = (Color.b - gray) * desat + gray;
result.a = Color.a;
return result;
}
|