1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| [gd_scene load_steps=5 format=3 uid="uid://4i1v2d2h07n5"]
[ext_resource type="Texture2D" uid="uid://ddxmxgyyfy8mn" path="res://icon.svg" id="1_xjdov"]
[sub_resource type="Shader" id="Shader_8eo3w"] code = "shader_type canvas_item;
group_uniforms Colors; uniform vec4 color_a : source_color = vec4(0.18, 0.22, 0.38, 1.0); uniform vec4 color_b : source_color = vec4(0.42, 0.28, 0.38, 1.0); uniform vec4 color_c : source_color = vec4(0.12, 0.32, 0.36, 1.0);
group_uniforms Timing; uniform float cycle_seconds : hint_range(4.0, 120.0, 0.5) = 22.0; uniform float phase_offset : hint_range(0.0, 6.283, 0.01) = 1.57;
group_uniforms Layout; uniform float vertical_mix : hint_range(0.0, 1.0, 0.01) = 0.22;
void fragment() { float t = TIME / max(cycle_seconds, 0.001); float w_ab = sin(t * TAU) * 0.5 + 0.5; float w_c = sin(t * TAU + phase_offset) * 0.5 + 0.5; vec3 rgb = mix(color_a.rgb, color_b.rgb, w_ab); rgb = mix(rgb, color_c.rgb, w_c);
float v = clamp(UV.y, 0.0, 1.0); vec3 top_bias = mix(rgb, color_a.rgb, (1.0 - v) * vertical_mix); vec3 bot_bias = mix(top_bias, color_b.rgb, v * vertical_mix); rgb = bot_bias;
vec4 tex = texture(TEXTURE, UV); vec4 out_c = vec4(rgb, color_a.a * tex.a) * tex * COLOR; COLOR = out_c; } "
[sub_resource type="ShaderMaterial" id="ShaderMaterial_n064g"] shader = SubResource("Shader_8eo3w") shader_parameter/color_a = Color(0.18, 0.22, 0.38, 1) shader_parameter/color_b = Color(0.42, 0.28, 0.38, 1) shader_parameter/color_c = Color(0.12, 0.32, 0.36, 1) shader_parameter/cycle_seconds = 22.0 shader_parameter/phase_offset = 1.57 shader_parameter/vertical_mix = 0.22
[sub_resource type="Gradient" id="Gradient_wmiru"] offsets = PackedFloat32Array(0, 0.258845, 1) colors = PackedColorArray(0.847059, 0.803922, 0.301961, 0, 1, 1, 1, 1, 0.780392, 0.65098, 0.403922, 0)
[node name="TestAncient" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 metadata/_edit_group_ = true metadata/_edit_lock_ = true
[node name="TimeColorBackground" type="ColorRect" parent="."] material = SubResource("ShaderMaterial_n064g") layout_mode = 1 offset_left = -329.0 offset_top = -49.0 offset_right = 2253.0 offset_bottom = 1172.0
[node name="stars" type="CPUParticles2D" parent="."] position = Vector2(925, 626) scale = Vector2(1.01, 1.01) amount = 300 lifetime = 3.0 preprocess = 5.0 local_coords = true emission_shape = 3 emission_rect_extents = Vector2(1500, 1000) gravity = Vector2(0, -10) scale_amount_min = 5.0 scale_amount_max = 10.0 color = Color(0.878431, 0.498039, 0.392157, 0.611765) color_ramp = SubResource("Gradient_wmiru")
[node name="TextureRect" type="TextureRect" parent="."] layout_mode = 1 offset_left = 694.0 offset_top = 165.0 offset_right = 1044.0 offset_bottom = 515.0 texture = ExtResource("1_xjdov")
|