first
This commit is contained in:
commit
b97b3a9ae4
79 changed files with 1729 additions and 0 deletions
10
exo1/shaders/exo1_tableaux/4uv_time.gdshader
Normal file
10
exo1/shaders/exo1_tableaux/4uv_time.gdshader
Normal file
|
@ -0,0 +1,10 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
void fragment() {
|
||||
// TIME est une variable globale qui contient le temps depuis lequel godot tourne
|
||||
// sin, cos etc... sont super utilise avec TIME
|
||||
// car ca permet d'avoir des trucs periodiques
|
||||
COLOR.rgb = vec3(sin(UV.x + TIME), cos(UV.y + 2.0*TIME), sin(UV.x + UV.y + 3.0*TIME));
|
||||
// parfois sin et cos peuvent valoir moins de 0
|
||||
// Mais c'est pas grave c'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue