Death animation

This commit is contained in:
2025-11-30 21:37:31 -08:00
parent c491ea5050
commit 8f8cc217dc
11 changed files with 338 additions and 146 deletions

View File

@@ -0,0 +1,47 @@
[gd_resource type="VisualShader" load_steps=4 format=3 uid="uid://bqarkh52u6xvg"]
[sub_resource type="VisualShaderNodeVec3Constant" id="VisualShaderNodeVec3Constant_jppg4"]
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_32eaw"]
source = 1
[sub_resource type="VisualShaderNodeVectorFunc" id="VisualShaderNodeVectorFunc_0twpm"]
function = 32
[resource]
code = "shader_type spatial;
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
uniform sampler2D screen_tex_frg_4 : hint_screen_texture;
void fragment() {
// Vector3Constant:2
vec3 n_out2p0 = vec3(0.000000, 0.000000, 0.000000);
vec4 n_out4p0;
// Texture2D:4
n_out4p0 = texture(screen_tex_frg_4, SCREEN_UV);
// VectorFunc:5
vec3 n_out5p0 = vec3(1.0) - vec3(n_out4p0.xyz);
// Output:0
SPECULAR = n_out2p0.x;
EMISSION = n_out5p0;
}
"
graph_offset = Vector2(-297.91, -31.8365)
nodes/fragment/2/node = SubResource("VisualShaderNodeVec3Constant_jppg4")
nodes/fragment/2/position = Vector2(-340, 280)
nodes/fragment/4/node = SubResource("VisualShaderNodeTexture_32eaw")
nodes/fragment/4/position = Vector2(-640, 640)
nodes/fragment/5/node = SubResource("VisualShaderNodeVectorFunc_0twpm")
nodes/fragment/5/position = Vector2(-140, 620)
nodes/fragment/connections = PackedInt32Array(2, 0, 0, 4, 4, 0, 5, 0, 5, 0, 0, 5)