shaderlib: Add smart_denoise function, add example, move example images into separate folder; implements #29

This commit is contained in:
ChaoticByte 2025-01-08 20:53:45 +01:00
parent 7b72274140
commit 9b6d5d0a78
No known key found for this signature in database
17 changed files with 127 additions and 16 deletions

View file

@ -132,13 +132,15 @@ var shaderlib_regex = {
"hsv": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/hsv\.gdshaderinc\"'),
"transform": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/transform\.gdshaderinc\"'),
"transparency": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/transparency\.gdshaderinc\"'),
"effects": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/effects\.gdshaderinc\"')
"effects": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/effects\.gdshaderinc\"'),
"denoise": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/denoise\.gdshaderinc\"')
}
const shaderlib_functions = {
"hsv": ["rgb2hsv", "hsv2rgb", "hsv_offset", "hsv_multiply"],
"transform": ["place_texture"],
"transparency": ["alpha_blend"],
"effects": ["pixelate"]
"effects": ["pixelate"],
"denoise": ["smart_denoise"]
}
#
# configure Highlighter