Unknown6656 / WPFPixelShaderLibrary

A Pixel Shader Library for WPF UI Controls written in HLSL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WPFPixelShaderLibrary

A Pixel Shader library to be used in WPF's XAML.

Nuget (with prereleases) | NuGet Package

Requires .NET Framework v.4.6 (or higher) or .NET Core 3.0 (or higher).

Have a look at https://github.com/Unknown6656-Megacorp/Unknown6656.CVGLPixelShader for a rough Python-equivalent of this repo.

Usage

Just add xmlns:fx="https://unknown6656.com/wpfpslib" to your XAML namespace definitions to use the effects:

<Window x:Class="MyTestApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:fx="https://unknown6656.com/wpfpslib"
        ...
        />
    <Grid>
        <Button Width="100" Height="25">
            <Button.Effect>
                <fx:PixelationEffect Count="40,20"/>
            </Button.Effect>
            PRESS ME !
        </Button>
    </Grid>
</Window>

Result:

The complete documentation will be available when I will have more free time!

About

A Pixel Shader Library for WPF UI Controls written in HLSL

License:GNU General Public License v3.0


Languages

Language:C# 81.5%Language:HLSL 18.5%