first
This commit is contained in:
commit
b97b3a9ae4
79 changed files with 1729 additions and 0 deletions
12
exo1/shaders/exo1_tableaux/3circle.gdshader
Normal file
12
exo1/shaders/exo1_tableaux/3circle.gdshader
Normal file
|
@ -0,0 +1,12 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
|
||||
void fragment() {
|
||||
// La fonction length renvoie la longeur d'un vec2, vec3 ou vec4
|
||||
// la syntaxe c'est length(ton vecteur)
|
||||
// ca donne plus une eclipse qu'un cercle
|
||||
// Pour avoir un cercle faudrait normaliser avec TEXTURE_PIXEL_SIZE
|
||||
// (qui donne la taille WIDTH et HEIGHT de notre canvas)
|
||||
COLOR.rgb = vec3(0, 1, 1);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue