HypernovaDesktop Components · docs
Binarymission
WPF › Shaders Library

Shaders Library

.NET Framework 4.8.NET 6 / 8 / 10WPF

Binarymission's custom Shaders library used in Binarymission Controls for WPF

20public types
133public members
1namespaces

Assembly

AssemblyBinarymission.WPF.Shaders.Library.dll
Root namespaceBinarymission.WPF.Shaders.Library
Target frameworks.NET Framework 4.8, .NET 6 / 8 / 10

Getting started

<Window x:Class="MyApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:bm="clr-namespace:Binarymission.WPF.Shaders.Library;assembly=Binarymission.WPF.Shaders.Library"&gt;

    <bm:BulgeEffect />

</Window>

API reference

Binarymission.WPF.Shaders.Library.CustomEffects

class BandsEffectA pixel shader effect that lays horizontal bands over its input. The density and strength of the banding are settable.
class BulgeEffectA pixel shader effect that pushes its input outwards inside a circular lens, or pulls it inwards when Amount is negative - a magnifying glass one way, a pinch the other.
class ChromaticSplitEffectA pixel shader effect that separates the red and blue channels of its input radially, leaving green in place - the colour fringing a cheap lens leaves at the corners of a photograph.
class ColorBlendEffectA simple color blending shader for WPF.
class ColorToBlackAndWhiteEffectA pixel shader effect that drains color from its input. The desaturation factor controls how far towards grayscale it goes.
class DuotoneEffectA pixel shader effect that maps the brightness of its input onto a two-colour ramp - the darkest pixels become ShadowColor, the brightest HighlightColor, and everything else a blend of the two.
class FrostedGlassEffectA pixel shader effect that scatters each pixel of its input by a small pseudo-random amount, which reads as frosted or etched glass laid over it.
class GlowingEdgesEffectA pixel shader effect that finds the edges in its input and draws them back as a coloured glow over a darkened copy of the original.
class HexPixellateEffectA pixel shader effect that quantises its input to a hexagonal grid rather than the square one PixellatingEffect uses.
class HueRotateEffectA pixel shader effect that turns every colour in its input around the colour wheel while leaving its brightness where it was.
class KaleidoscopeEffectA pixel shader effect that folds its input into mirrored wedges around a centre point, the way a kaleidoscope folds whatever it is pointed at.
class NegativeToPositiveEffectA pixel shader effect that inverts its input, turning a negative image into a positive one.
class PixellatingEffectA simple pixellating shader for WPF.
class PositiveEffectA pixel shader effect that tints its input with a settable color filter. With the default filter, white, the image is shown unchanged.
class RadialBlurEffectA pixel shader effect that smears its input along the line from each pixel towards a centre point - the streak a camera leaves when it zooms during the exposure.
class RainFloorEffectA pixel shader effect that puts a rain-on-a-wet-floor distortion over its input. The activity factor drives it, so animating that property animates the rain.
class TwirlEffectA pixel shader effect that twists its input around its center. The radius sets how much of the image is caught up in the twist and the angle sets how far it turns.
class VignetteEffectA pixel shader effect that darkens its input towards the corners, the way a lens falls off at the edge of its coverage.
class WaterRippleEffectA pixel shader effect that ripples its input outwards from a settable center point.
class WaterWaveEffectA pixel shader effect that rolls a wave across its input and tints it. The wave factor drives the motion, so animating it animates the wave.