goalpost
This commit is contained in:
parent
e1b43c8bc5
commit
08712cf22c
11 changed files with 244 additions and 37 deletions
Binary file not shown.
36
assets/shaders/flag.gdshader
Normal file
36
assets/shaders/flag.gdshader
Normal file
|
@ -0,0 +1,36 @@
|
|||
shader_type spatial;
|
||||
render_mode vertex_lighting, specular_disabled, cull_disabled;
|
||||
|
||||
uniform vec3 color_bright : source_color = vec3(1.0);
|
||||
uniform vec3 color_dark : source_color = vec3(0.0);
|
||||
uniform float pivot = 0.0;
|
||||
uniform float pivot_speed = 1.0;
|
||||
uniform float waves = 4.0;
|
||||
uniform float wave_speed = 1.0;
|
||||
uniform float wave_scale = 0.25;
|
||||
|
||||
void vertex() {
|
||||
float body = (VERTEX.x) / 2.0;
|
||||
|
||||
VERTEX.z = sin(VERTEX.x * waves + TIME * wave_speed) * wave_scale * body;
|
||||
|
||||
float pivot_angle = cos(TIME * pivot_speed) * 0.1 * pivot;
|
||||
mat2 rotation_matrix = mat2(
|
||||
vec2(cos(pivot_angle), -sin(pivot_angle)),
|
||||
vec2(sin(pivot_angle), cos(pivot_angle))
|
||||
);
|
||||
VERTEX.xz = rotation_matrix * VERTEX.xz;
|
||||
|
||||
float color_weight = sin(VERTEX.x * waves + TIME * wave_speed);
|
||||
COLOR = vec4(mix(color_dark, color_bright, color_weight), 1.0);
|
||||
//VERTEX.z += cos(time + body) * wave;
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
ALBEDO = COLOR.rgb;
|
||||
}
|
||||
|
||||
//void light() {
|
||||
// Called for every pixel for every light affecting the material.
|
||||
// Uncomment to replace the default light processing function with this one.
|
||||
//}
|
BIN
assets/textures/objects/goal_hole.png
Normal file
BIN
assets/textures/objects/goal_hole.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 833 B |
35
assets/textures/objects/goal_hole.png.import
Normal file
35
assets/textures/objects/goal_hole.png.import
Normal file
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cyxkbck2gs2wt"
|
||||
path.s3tc="res://.godot/imported/goal_hole.png-82d98e7cb998351c16c7196fffe6486e.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/textures/objects/goal_hole.png"
|
||||
dest_files=["res://.godot/imported/goal_hole.png-82d98e7cb998351c16c7196fffe6486e.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 6.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue