This module provides three shaders that can be used to mask images in different ways:
A shader that can be used to mask images depending on their pixels alpha values. The threshold value is set via SetAlpha.
A shader that can be used to mask images with a...
I want to write a shader in mojo2 that draws a fragment when it's alpha value is above a certain threshold. In BlitzMax, I've done something similar once with the offset coming from the vertex alpha... Anyhow, I've come to a point where I have to admit that I have a frustrating problem:
Quick example of how to layer multiple canvases in mojo2 without having big opaque rectangles on each one.
You can have a whole bunch of layers per canvas + do fancy stuff with coordinating their positioning, scale, etc., but this is the simplest case I could make to demonstrate the process. If...
Heya, I went and ported the GIF loader (originally by CopperCircle) to mojo2:
I haven't tested it extensively, so can't guarantee it's gonna work in all cases.
(mojo 1 version: https://github.com/ootsby/GIF-Loader)