Skip to content

Displacement map shaders & misc shaders#96

Merged
exeldro merged 3 commits intoexeldro:masterfrom
ArTiSTiX:displacement-map-shaders
Dec 26, 2025
Merged

Displacement map shaders & misc shaders#96
exeldro merged 3 commits intoexeldro:masterfrom
ArTiSTiX:displacement-map-shaders

Conversation

@ArTiSTiX
Copy link
Copy Markdown

@ArTiSTiX ArTiSTiX commented Dec 26, 2025

Quadrilateral Crop

Inverse of a Corner Pin, distort image using 4 points polygon back to corners.
Useful to flatten perspective (tip: resize/crop source to your desired size before moving points for easier configuration).

Example:

Screenshot_2025-12-15_18-31-30 Screenshot_2025-12-15_18-31-39

Noise shader

A simple pseudo-random white noise shader. Can be useful for adding tiny grain to an image.

Normal Map shader

Based on NormalMap-Online website by @cpetry

Example:

Screenshot_2025-12-26_17-22-22 Screenshot_2025-12-26_17-21-56

Displacement Map shader (simple)

From a Displacement Map / Normal map, distort image in X and Y (red and green channels of map).
Note:

  • Add gaussian blur before/after the normal map shader for better results.
  • Add noise for frosted glass effect.

Example:

Screenshot_2025-12-26_17-40-32 Screenshot_2025-12-26_17-40-40

Displacement Map shader (advanced)

Additonnal effects with displacement for more advanced results:

  • Displacement map curve: remap X/Y displacement with linear (same as simple version), quadratic or cubic.
  • Blur (with configurable direction)
  • Chromatic Aberration
  • Colorize
  • Map blue (Z) channel to those additional effects.

Example:

Screenshot_2025-12-26_14-14-41 Screenshot_2025-12-26_17-27-15

Note

Displacement map shaders are duplicated in 2 versions:

Normal: The filter is applied to the background image, and you have to fill the Mask Layer input.
Invert: The filter is applied to the mask layer and you have to fill the background layer.

I was not able to make the swap through a single boolean (i'm no expert in making shaders, particularly in OBS, but it seems compilation does not accept a dynamic reference to a texture...).

@ArTiSTiX ArTiSTiX changed the title Displacement map shaders Displacement map shaders & misc shaders Dec 26, 2025
@exeldro exeldro merged commit 6d54359 into exeldro:master Dec 26, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants