Skip to content

Shader gallery

ikz87 edited this page Apr 29, 2023 · 13 revisions

Welcome to the shader gallery!

Here you will find examples of how each shader of the repo looks. For each shader I will be using a semitransparent window that only contains the following image over a black on white grid as an example:

There will be some exceptions with some shaders that are better exemplified with other images

The shaders are organized into three categories:

  • Artistic: these are shaders that change how your windows look to fit some artistic style, purely for aesthetic purposes.
  • Practical: shaders that fit a more practical role and might be useful in some way or another.
  • 3DCamera: in these shaders a 3D camera is emulated with the window being projected on the surface of a 3D object described in the shader.

Most (basically all) of these shaders have some properties that can be changed at the very start of the file. Everything is well commented so be sure read through them.

Artistic

These shaders don't like image compression at all, be sure to "right click > Open image in new tab" if you want to see how the shaders actually look.

dither

Reduces the amount of colors and applies dither.

shader OFF shader ON

old CRT

Tries to replicate the look of an old CRT TV. This one specially has quite a lot of configuration options at the start of it, make sure to check them out :).

shader OFF shader ON

chromatic aberration

Simulates color aberration

shader OFF shader ON

bloom

Applies bloom. Works best for windows with bright pixels over dark ones, like a terminal.

shader OFF shader ON

color based transparency

Removes opacity from colors depending on how far they are from a "median color", creating a transparency gradient. Could be used for chroma keying.

shader OFF shader ON

value based transparency

Like the shader above, but is based on a single value per pixel (like hue or brightness). Check the window_shader function to see what properties are available.

shader OFF shader ON

window borders

Applies window borders through a shader. Supports rounded borders and adds color shifting

shader OFF shader ON

Practical

brightness change

Changes the brightness of every pixel proportionally.

shader OFF shader ON

gamma change

Works like the shader above, but for gamma.

shader OFF shader ON

3D Camera

You can change how the camera moves around the object in all of these shaders. There are some presets for camera movements you can use.

plane

shader OFF shader ON

cross

shader OFF shader ON

cube

shader OFF shader ON

cylinder

shader OFF shader ON

sphere

shader OFF shader ON