Add hsv.gdshaderinc to shaderlibrary, provide an example and update README.md - implement #12
This commit is contained in:
parent
862ef075ff
commit
6b748229ed
3 changed files with 76 additions and 0 deletions
9
examples/hsv.gdshader
Normal file
9
examples/hsv.gdshader
Normal file
|
@ -0,0 +1,9 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
#include "res://shaderlib/hsv.gdshaderinc"
|
||||
|
||||
//!load ./swamp.jpg
|
||||
|
||||
void fragment() {
|
||||
COLOR = hsv_multiply(hsv_offset(COLOR, -0.3, 0.9, 0.0), 1.0, 0.44, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue