This repository has been archived by the owner on Feb 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Filter Preset 'Channel Offset'
- Loading branch information
1 parent
2c6cfde
commit e79c992
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
shader_type canvas_item; | ||
|
||
const vec2 offset_r = vec2(-0.002, -0.002); | ||
const vec2 offset_g = vec2(0., 0.); | ||
const vec2 offset_b = vec2(0.002, 0.002); | ||
|
||
void fragment() { | ||
COLOR.r = texture(TEXTURE , UV + offset_r).r; | ||
COLOR.g = texture(TEXTURE , UV + offset_g).g; | ||
COLOR.b = texture(TEXTURE , UV + offset_b).b; | ||
COLOR.a = COLOR.a; | ||
} |