This commit is contained in:
Crizomb 2025-05-15 14:28:08 +02:00
commit b97b3a9ae4
79 changed files with 1729 additions and 0 deletions

View file

@ -0,0 +1,20 @@
shader_type canvas_item;
// ET OUI, MEME LE SOL C'EST UN SHADER
// Petite shader juste pour faire un ptit effet de perspective tiled sur le sol
// J'avais la flemme de faire des belles textures lol
uniform float skew_amount = 0.5;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
vec2 skewed_uv = UV;
skewed_uv.x += (1.0 - UV.y) * skew_amount;
COLOR = texture(TEXTURE, skewed_uv);
}
//void light() {
// // Called for every pixel for every light affecting the CanvasItem.
// // Uncomment to replace the default light processing function with this one.
//}