mirror of
https://github.com/marinho/godot-visual-effects.git
synced 2025-09-19 04:06:15 +08:00
Impact particles
This commit is contained in:
75
particles/impact.tscn
Normal file
75
particles/impact.tscn
Normal file
@ -0,0 +1,75 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://jyk4uwcupa50"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cpqufbjs2rf5t" path="res://addons/kenney_particle_pack/muzzle_01.png" id="1_nj335"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8yqiftn6q2ij" path="res://addons/kenney_particle_pack/circle_05.png" id="2_6unvo"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_lqnej"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.370492, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_rymgb"]
|
||||
curve = SubResource("Curve_lqnej")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_mr68g"]
|
||||
_data = [Vector2(0, 0.521682), 0.0, 0.0, 0, 0, Vector2(0.144262, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_7xpum"]
|
||||
curve = SubResource("Curve_mr68g")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_s3tbj"]
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_7xpum")
|
||||
alpha_curve = SubResource("CurveTexture_rymgb")
|
||||
sub_emitter_mode = 2
|
||||
sub_emitter_amount_at_end = 1
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ky36s"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(1, 1, 1, 0.0392157)
|
||||
albedo_texture = ExtResource("1_nj335")
|
||||
rim_enabled = true
|
||||
billboard_mode = 3
|
||||
billboard_keep_scale = true
|
||||
particles_anim_h_frames = 1
|
||||
particles_anim_v_frames = 1
|
||||
particles_anim_loop = false
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_ot0ot"]
|
||||
material = SubResource("StandardMaterial3D_ky36s")
|
||||
center_offset = Vector3(0, 0.4, 0)
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_iv2ux"]
|
||||
direction = Vector3(0, 2, 0)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6ojok"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = ExtResource("2_6unvo")
|
||||
billboard_mode = 3
|
||||
billboard_keep_scale = true
|
||||
particles_anim_h_frames = 1
|
||||
particles_anim_v_frames = 1
|
||||
particles_anim_loop = false
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_pmnps"]
|
||||
material = SubResource("StandardMaterial3D_6ojok")
|
||||
size = Vector2(0.1, 0.1)
|
||||
|
||||
[node name="Impact" type="Node3D"]
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
amount = 10
|
||||
sub_emitter = NodePath("../GPUParticles3D2")
|
||||
explosiveness = 1.0
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_s3tbj")
|
||||
draw_pass_1 = SubResource("QuadMesh_ot0ot")
|
||||
|
||||
[node name="GPUParticles3D2" type="GPUParticles3D" parent="."]
|
||||
process_material = SubResource("ParticleProcessMaterial_iv2ux")
|
||||
draw_pass_1 = SubResource("QuadMesh_pmnps")
|
@ -64,8 +64,9 @@ material = SubResource("StandardMaterial3D_lmrnj")
|
||||
size = Vector2(1.5, 1.5)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_8kor2"]
|
||||
min_value = -360.0
|
||||
max_value = 360.0
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 360), 0.0, 0.0, 0, 0]
|
||||
_data = [Vector2(0, -360), 0.0, 0.0, 0, 0, Vector2(1, 360), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_7lrlq"]
|
||||
@ -83,17 +84,16 @@ curve = SubResource("Curve_jwnch")
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_eugrd"]
|
||||
particle_flag_align_y = true
|
||||
particle_flag_rotate_y = true
|
||||
angle_max = 1.0
|
||||
angle_curve = SubResource("CurveTexture_7lrlq")
|
||||
direction = Vector3(0, 0, 0)
|
||||
angular_velocity_min = 0.1
|
||||
angular_velocity_max = 0.1
|
||||
angular_velocity_curve = SubResource("CurveTexture_1uygt")
|
||||
gravity = Vector3(0, 0, 0)
|
||||
color = Color(0, 0.647059, 1, 0.501961)
|
||||
color = Color(0.796078, 0.760784, 1, 0.501961)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_q8hwq"]
|
||||
offsets = PackedFloat32Array(0.58363, 0.6121, 0.651246)
|
||||
offsets = PackedFloat32Array(0.587189, 0.6121, 0.629893)
|
||||
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_irpch"]
|
||||
@ -106,6 +106,7 @@ fill_from = Vector2(0.5, 0.5)
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6lgl3"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = SubResource("GradientTexture2D_irpch")
|
||||
billboard_keep_scale = true
|
||||
|
||||
@ -115,7 +116,6 @@ size = Vector2(1.2, 1.2)
|
||||
orientation = 0
|
||||
|
||||
[node name="Shield" type="Node3D"]
|
||||
visible = false
|
||||
|
||||
[node name="Sphere" type="GPUParticles3D" parent="."]
|
||||
amount = 1
|
||||
|
Reference in New Issue
Block a user