system
1
system
4
|
|
|
|
Reply From: |
kidscancode |
3.0 is still not documented, so you’re not going to find that yet.
In the meantime, there are some examples & discussion posts here in QA, and you can find some additional discussion in the Godot issues:
A user here posted a sample recently:
There is also a language reference someone started putting together:
system
5
|
|
|
|
Reply From: |
PerduGames |
very simple too:
shader_type canvas_item;
uniform sampler2D frame0;
uniform sampler2D frame1;
uniform float speed = 1.0;
void fragment() {
float time = fract(TIME*speed);
if (time < 0.4) {
COLOR = texture(frame0, UV);
} else {
COLOR = texture(frame1, UV);
}
}
some interesting links too:
https://www.khronos.org/files/opengles3-quick-reference-card.pdf