Major overhaul of scene transitions and game over
This commit is contained in:
13
ScrollText.gdshader
Normal file
13
ScrollText.gdshader
Normal file
@@ -0,0 +1,13 @@
|
||||
shader_type canvas_item;
|
||||
uniform sampler2D ColourTexture;
|
||||
uniform vec2 rect_global_position;
|
||||
uniform vec2 rect_size;
|
||||
|
||||
void vertex() {
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec2 actual_uv = (SCREEN_UV - rect_global_position) * rect_size;
|
||||
COLOR *= texture(ColourTexture, actual_uv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user