Move sounds
New task (textures only)
This commit is contained in:
8
Shader/Puddle.shader
Normal file
8
Shader/Puddle.shader
Normal file
@@ -0,0 +1,8 @@
|
||||
shader_type canvas_item;
|
||||
|
||||
void fragment() {
|
||||
float uv_height = SCREEN_PIXEL_SIZE.y / TEXTURE_PIXEL_SIZE.y;
|
||||
vec2 reflected_screenuv = vec2(SCREEN_UV.x, SCREEN_UV.y + uv_height * UV.y * 2.0);
|
||||
|
||||
COLOR = texture(SCREEN_TEXTURE, reflected_screenuv);
|
||||
}
|
||||
Reference in New Issue
Block a user