Removed presets, load all images via load directives (implements #9), removed obsolete code, added some improvements
This commit is contained in:
parent
53d42de4a5
commit
4b28a6427e
21 changed files with 231 additions and 205 deletions
10
examples/mix.gdshader
Normal file
10
examples/mix.gdshader
Normal file
|
@ -0,0 +1,10 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
//!load ./swamp.jpg
|
||||
|
||||
//!load+ img2 ./overlay.jpg
|
||||
uniform sampler2D img2: repeat_enable, filter_nearest;
|
||||
|
||||
void fragment() {
|
||||
COLOR = mix(COLOR, texture(img2, UV), .2);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue