Update the example in the README
This commit is contained in:
parent
d61dac7acf
commit
8653b3740e
1 changed files with 3 additions and 3 deletions
|
@ -36,12 +36,12 @@ Have a look at the `mix.gdshader` example:
|
||||||
```glsl
|
```glsl
|
||||||
shader_type canvas_item;
|
shader_type canvas_item;
|
||||||
|
|
||||||
//!load ./example1.png
|
//!load ./swamp.jpg
|
||||||
|
|
||||||
//!load+ img2 ./example2.jpg
|
//!load+ img2 ./overlay.jpg
|
||||||
uniform sampler2D img2: repeat_enable, filter_nearest;
|
uniform sampler2D img2: repeat_enable, filter_nearest;
|
||||||
|
|
||||||
void fragment() {
|
void fragment() {
|
||||||
COLOR = mix(COLOR, texture(img2, UV), .5);
|
COLOR = mix(COLOR, texture(img2, UV), .2);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue