Skip to content

Instantly share code, notes, and snippets.

@Smurfatron
Smurfatron / TextureMaskStyle.as
Created April 10, 2017 05:20 — forked from PrimaryFeather/TextureMaskStyle.as
A MeshStyle for Starling 2 that discards texels with an alpha value below a certain threshold. This makes it perfect for arbitrarily shaped stencil masks.
// =================================================================================================
//
// Starling Framework
// Copyright 2011-2016 Gamua. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================