Custom pixel shaders

Home / Features / Custom pixel shaders

When a blit effect isn't available in EDGELIB, it's possible to define custom pixel shaders. This enables great customizability, but at the expense of performance. These custom pixel shaders can be used for transparent (colorkeyed) surfaces and non-transparent surfaces.

EDGELIB offers four sample pixel shaders, ready to be used. Look below to see the results when blitting a transparent sprite with several pixel shaders.

AND pixel shader
AND pixel shader
OR pixel shader
OR pixel shader
XOR pixel shader
XOR pixel shader
Grayscale pixel shader
Grayscale pixel shader

Back to Features

Latest forum posts