墙体互动
parent
9df257acdf
commit
21b288986c
@ -0,0 +1,9 @@
|
||||
# Editor configuration, see https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*.gd]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
@ -0,0 +1,15 @@
|
||||
shader_type spatial;
|
||||
render_mode blend_add,unshaded,depth_test_disabled,cull_disabled;
|
||||
|
||||
uniform sampler2D tex_main : source_color;
|
||||
uniform sampler2D tex_noise : source_color;
|
||||
uniform sampler2D tex_mask : source_color;
|
||||
|
||||
void fragment() {
|
||||
vec4 col_main = texture(tex_main, UV);
|
||||
vec4 col_noise = texture(tex_noise, UV - 0.5 * vec2(mod(TIME, 2.0) - 1.0, 0));
|
||||
vec4 col_mask = texture(tex_mask, UV);
|
||||
vec4 col = (col_noise + col_main) * col_mask;
|
||||
ALBEDO = col.rgb;
|
||||
ALPHA = col_mask.r * COLOR.a;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
shader_type spatial;
|
||||
render_mode unshaded,cull_disabled;
|
||||
|
||||
uniform sampler2D tex_main : source_color;
|
||||
uniform sampler2D tex_noise : source_color;
|
||||
|
||||
void fragment() {
|
||||
vec4 col = texture(tex_main, UV);
|
||||
float noise_alpha = texture(tex_noise, UV).r;
|
||||
if (COLOR.a >= noise_alpha){
|
||||
noise_alpha = 1.0;
|
||||
}
|
||||
ALBEDO = COLOR.rgb;
|
||||
ALPHA = COLOR.a * col.r * noise_alpha;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 107 KiB |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cvm7ouwqnp235"
|
||||
path="res://.godot/imported/circle4.png-9a88e12df394f7eee2753e6eda35c5ca.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://render/texture/particle/shape/circle4.png"
|
||||
dest_files=["res://.godot/imported/circle4.png-9a88e12df394f7eee2753e6eda35c5ca.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
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.
|
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://oxcyfuprk6a8"
|
||||
path="res://.godot/imported/decal1.png-957eac5df67f2c0ba2501f6cb78618bc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://render/texture/particle/shape/decal1.png"
|
||||
dest_files=["res://.godot/imported/decal1.png-957eac5df67f2c0ba2501f6cb78618bc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
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
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,68 +0,0 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://5d1a3s6x77wd"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/effect/particle.gd" id="1_2t2j1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjv7f83tdgq17" path="res://render/texture/decal/decal_explode.png" id="2_vkpca"]
|
||||
[ext_resource type="Script" path="res://script/effect/particle_decal.gd" id="3_dwi0o"]
|
||||
[ext_resource type="Texture2D" uid="uid://brgii0qi4s6kb" path="res://render/texture/decal/decal_dust.png" id="4_jxr0h"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkhmqgtc8tn1t" path="res://render/texture/decal/decal_shockwave.png" id="5_c3jkk"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6bfacouwy2hi" path="res://render/texture/decal/decal_glow.png" id="6_2la8o"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_w5jkx"]
|
||||
max_value = 0.6
|
||||
_data = [Vector2(0, 0), 0.0, 0.84, 0, 0, Vector2(0.0196078, 0.6), 0.0, 0.0, 0, 0, Vector2(1, 0.6), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="Curve" id="Curve_r6bwy"]
|
||||
max_value = 1.5
|
||||
_data = [Vector2(0, 1.06915), 0.0, 1.4, 0, 0, Vector2(1, 1.5), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_18e7g"]
|
||||
min_value = 1.0
|
||||
max_value = 2.0
|
||||
_data = [Vector2(0, 1), 0.0, 1.4, 0, 0, Vector2(1, 2), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[node name="Particle" type="Node3D"]
|
||||
script = ExtResource("1_2t2j1")
|
||||
|
||||
[node name="DecalExplode" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
|
||||
size = Vector3(1, 5, 1)
|
||||
texture_albedo = ExtResource("2_vkpca")
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
upper_fade = 21.3037
|
||||
cull_mask = 1
|
||||
script = ExtResource("3_dwi0o")
|
||||
lifetime = 3.0
|
||||
scale_curve = SubResource("Curve_w5jkx")
|
||||
|
||||
[node name="DecalDust" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
|
||||
size = Vector3(1, 5, 1)
|
||||
texture_albedo = ExtResource("4_jxr0h")
|
||||
upper_fade = 21.3037
|
||||
cull_mask = 1
|
||||
script = ExtResource("3_dwi0o")
|
||||
lifetime = 0.5
|
||||
scale_curve = SubResource("Curve_r6bwy")
|
||||
|
||||
[node name="DecalShockwave" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
|
||||
size = Vector3(1, 5, 1)
|
||||
texture_albedo = ExtResource("5_c3jkk")
|
||||
upper_fade = 21.3037
|
||||
cull_mask = 1
|
||||
script = ExtResource("3_dwi0o")
|
||||
lifetime = 0.1
|
||||
scale_curve = SubResource("Curve_18e7g")
|
||||
|
||||
[node name="DecalGlow" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
|
||||
size = Vector3(1, 5, 1)
|
||||
texture_albedo = ExtResource("6_2la8o")
|
||||
upper_fade = 21.3037
|
||||
cull_mask = 1
|
||||
script = ExtResource("3_dwi0o")
|
||||
lifetime = 0.1
|
||||
scale_curve = SubResource("Curve_18e7g")
|
||||
@ -0,0 +1,70 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://5d1a3s6x77wd"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/effect/particle.gd" id="1_2t2j1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjv7f83tdgq17" path="res://render/texture/decal/decal_explode.png" id="2_vkpca"]
|
||||
[ext_resource type="Script" path="res://script/effect/particle_decal.gd" id="3_dwi0o"]
|
||||
[ext_resource type="Shader" path="res://render/shader/particle_ground.gdshader" id="4_ppovm"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvm7ouwqnp235" path="res://render/texture/particle/shape/circle4.png" id="5_ckrbk"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_w5jkx"]
|
||||
max_value = 0.6
|
||||
_data = [Vector2(0, 0), 0.0, 0.84, 0, 0, Vector2(0.0196078, 0.6), 0.0, 0.0, 0, 0, Vector2(1, 0.6), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_70q7o"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("4_ppovm")
|
||||
shader_parameter/tex_main = ExtResource("5_ckrbk")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_yx8ux"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.252308, 0.398295), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_vgydt"]
|
||||
curve = SubResource("Curve_yx8ux")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_o1uxt"]
|
||||
max_value = 2.0
|
||||
_data = [Vector2(0, 0.369062), 0.0, 1.4, 0, 0, Vector2(0.0923077, 1.60414), 0.0, 0.0, 0, 0, Vector2(1, 2), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_plhfa"]
|
||||
curve = SubResource("Curve_o1uxt")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ro7la"]
|
||||
particle_flag_disable_z = true
|
||||
angle_min = 1.07288e-05
|
||||
angle_max = 720.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_plhfa")
|
||||
alpha_curve = SubResource("CurveTexture_vgydt")
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_apjnk"]
|
||||
|
||||
[node name="Particle" type="Node3D"]
|
||||
script = ExtResource("1_2t2j1")
|
||||
|
||||
[node name="DecalExplode" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
|
||||
size = Vector3(1, 1, 1)
|
||||
texture_albedo = ExtResource("2_vkpca")
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
upper_fade = 21.3037
|
||||
cull_mask = 1
|
||||
script = ExtResource("3_dwi0o")
|
||||
lifetime = 3.0
|
||||
scale_curve = SubResource("Curve_w5jkx")
|
||||
|
||||
[node name="Shockwave" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
|
||||
layers = 512
|
||||
material_override = SubResource("ShaderMaterial_70q7o")
|
||||
cast_shadow = 0
|
||||
emitting = false
|
||||
amount = 1
|
||||
lifetime = 0.3
|
||||
one_shot = true
|
||||
fixed_fps = 60
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_ro7la")
|
||||
draw_pass_1 = SubResource("QuadMesh_apjnk")
|
||||
@ -0,0 +1,71 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://b1eg05rgvdjk"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/effect/particle.gd" id="1_2t2j1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjv7f83tdgq17" path="res://render/texture/decal/decal_explode.png" id="2_vkpca"]
|
||||
[ext_resource type="Script" path="res://script/effect/particle_decal.gd" id="3_dwi0o"]
|
||||
[ext_resource type="Shader" path="res://render/shader/particle_ground.gdshader" id="4_riq1c"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvm7ouwqnp235" path="res://render/texture/particle/shape/circle4.png" id="5_feq6c"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_yn1ni"]
|
||||
max_value = 0.6
|
||||
_data = [Vector2(0, 0), 0.0, 0.84, 0, 0, Vector2(0.0196078, 0.6), 0.0, 0.0, 0, 0, Vector2(1, 0.6), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0b0aa"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("4_riq1c")
|
||||
shader_parameter/tex_main = ExtResource("5_feq6c")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_ll1if"]
|
||||
_data = [Vector2(0, 0.52497), 0.0, -0.52497, 0, 1, Vector2(1, 0), -0.52497, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_m6i4p"]
|
||||
curve = SubResource("Curve_ll1if")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_63se2"]
|
||||
max_value = 1.5
|
||||
_data = [Vector2(0, 0.870585), 0.0, 0.629415, 0, 1, Vector2(1, 1.5), 0.629415, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_dlf32"]
|
||||
curve = SubResource("Curve_63se2")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_t7n3k"]
|
||||
particle_flag_disable_z = true
|
||||
angle_min = 1.07288e-05
|
||||
angle_max = 720.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_dlf32")
|
||||
alpha_curve = SubResource("CurveTexture_m6i4p")
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_36ni8"]
|
||||
|
||||
[node name="Particle" type="Node3D"]
|
||||
script = ExtResource("1_2t2j1")
|
||||
|
||||
[node name="DecalExplode" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
|
||||
visible = false
|
||||
size = Vector3(1, 1, 1)
|
||||
texture_albedo = ExtResource("2_vkpca")
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
upper_fade = 21.3037
|
||||
cull_mask = 1
|
||||
script = ExtResource("3_dwi0o")
|
||||
lifetime = 5.0
|
||||
scale_curve = SubResource("Curve_yn1ni")
|
||||
|
||||
[node name="Shockwave" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
|
||||
layers = 512
|
||||
material_override = SubResource("ShaderMaterial_0b0aa")
|
||||
cast_shadow = 0
|
||||
emitting = false
|
||||
amount = 1
|
||||
lifetime = 0.3
|
||||
one_shot = true
|
||||
fixed_fps = 60
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_t7n3k")
|
||||
draw_pass_1 = SubResource("QuadMesh_36ni8")
|
||||
@ -1,5 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://ds7mp5l20ypb6"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://5d1a3s6x77wd" path="res://scene/effect/particle/_particle_hit_ground.tscn" id="1_tw6qm"]
|
||||
[ext_resource type="PackedScene" uid="uid://5d1a3s6x77wd" path="res://scene/effect/particle/_particle_hit_ground_heavy.tscn" id="1_tw6qm"]
|
||||
|
||||
[node name="Particle" instance=ExtResource("1_tw6qm")]
|
||||
is_ground = true
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dpewyvwr7358m"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/effect/particle.gd" id="1_c4i0s"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1eg05rgvdjk" path="res://scene/effect/particle/_particle_hit_ground_normal.tscn" id="8_x8r0p"]
|
||||
|
||||
[node name="Particle" type="Node3D"]
|
||||
script = ExtResource("1_c4i0s")
|
||||
|
||||
[node name="Particle" parent="." instance=ExtResource("8_x8r0p")]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
|
||||
Loading…
Reference in New Issue