Ejemplo n.º 1
0
        /// <summary>
        /// Creates a PixelShader by loading the bytecode.
        /// </summary>
        static ToonShaderEffect()
        {
            pixelShader           = new PixelShader();
            pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ToonShaderEffect));

            // Just saying hardware only for now since our drop of sw doesn't have sin/cos in
            // it, and thus we can't validate against that.
#if !SILVERLIGHT
            // TODO:
            pixelShader.ShaderRenderMode = ShaderRenderMode.HardwareOnly;
#endif
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ColorToneEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ColorToneEffect));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static PinchEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(PinchEffect));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static LightStreakEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(LightStreakEffect));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ColorKeyAlphaEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ColorKeyAlphaEffect));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static SwirlEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SwirlEffect));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static MagnifyEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(MagnifyEffect));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static MonochromeEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(MonochromeEffect));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static InvertColorEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(InvertColorEffect));
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static SharpenEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SharpenEffect));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ToneMappingEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ToneMappingEffect));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static BrightExtractEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(BrightExtractEffect));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static RippleEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(RippleEffect));
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ZoomBlurEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ZoomBlurEffect));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static EmbossedEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(EmbossedEffect));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static GloomEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(GloomEffect));
 }