mirror of
https://github.com/marinho/godot-visual-effects.git
synced 2025-09-19 04:06:15 +08:00
Ring Portal particle
This commit is contained in:
@ -4,6 +4,7 @@ extends Node3D
|
||||
@onready var buttonSmoke = %ButtonSmoke
|
||||
@onready var effectsContainer = %Effects
|
||||
@onready var sideBarMenu = $"CanvasLayer UI/SideBar/SideBar Menu"
|
||||
@onready var camera = %Camera3D
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
@ -34,3 +35,7 @@ func toggleSideBar():
|
||||
else:
|
||||
sideBarMenu.show()
|
||||
|
||||
|
||||
|
||||
func slider_camera_zoom_value_changed(value):
|
||||
camera.size = 10 - value
|
||||
|
139
particles/ring_portal.tscn
Normal file
139
particles/ring_portal.tscn
Normal file
@ -0,0 +1,139 @@
|
||||
[gd_scene load_steps=25 format=3 uid="uid://dxbwdhrcv17yk"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://3co4nf76dimy" path="res://addons/kenney_particle_pack/light_03.png" id="1_doeqm"]
|
||||
[ext_resource type="Texture2D" uid="uid://caxhytnpo4m8o" path="res://addons/kenney_particle_pack/twirl_03.png" id="2_rfyul"]
|
||||
[ext_resource type="Texture2D" uid="uid://oniakpdqxpop" path="res://addons/kenney_particle_pack/star_09.png" id="3_cobuj"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_q708y"]
|
||||
offsets = PackedFloat32Array(0, 0.531353, 1)
|
||||
colors = PackedColorArray(0, 0.388235, 1, 1, 1, 0, 1, 1, 0, 0.388235, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_pr6jd"]
|
||||
gradient = SubResource("Gradient_q708y")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_lkuf0"]
|
||||
_data = [Vector2(0, 0.987753), 0.0, 0.0, 0, 0, Vector2(0.498615, 0.868347), 0.0, 0.0, 0, 0, Vector2(1, 0.987753), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_cumia"]
|
||||
curve = SubResource("Curve_lkuf0")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_idoxc"]
|
||||
particle_flag_rotate_y = true
|
||||
radial_velocity_max = 2.08167e-14
|
||||
gravity = Vector3(2.08165e-12, 2.08165e-12, 2.08165e-12)
|
||||
scale_curve = SubResource("CurveTexture_cumia")
|
||||
color_ramp = SubResource("GradientTexture1D_pr6jd")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ciliw"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = ExtResource("1_doeqm")
|
||||
emission = Color(1, 1, 1, 1)
|
||||
emission_energy_multiplier = 0.0
|
||||
rim_enabled = true
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_hy743"]
|
||||
material = SubResource("StandardMaterial3D_ciliw")
|
||||
orientation = 1
|
||||
|
||||
[sub_resource type="Curve" id="Curve_ptk1q"]
|
||||
min_value = -360.0
|
||||
max_value = 360.0
|
||||
_data = [Vector2(0, -360), 0.0, 720.0, 0, 1, Vector2(1, 360), 720.0, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_x3org"]
|
||||
curve = SubResource("Curve_ptk1q")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_bm8tk"]
|
||||
offsets = PackedFloat32Array(0, 0.524752, 1)
|
||||
colors = PackedColorArray(1, 0.290196, 0, 1, 1, 1, 0, 1, 1, 0.290196, 0, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_udo51"]
|
||||
gradient = SubResource("Gradient_bm8tk")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_de6lf"]
|
||||
_data = [Vector2(0, 0.222327), 0.0, 0.0, 0, 0, Vector2(0.357341, 0.500942), 0.0, 0.0, 0, 0, Vector2(1, 0.225389), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_h0khy"]
|
||||
curve = SubResource("Curve_de6lf")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_t36pa"]
|
||||
particle_flag_rotate_y = true
|
||||
angle_min = 1.0
|
||||
angle_max = 1.0
|
||||
angle_curve = SubResource("CurveTexture_x3org")
|
||||
radial_velocity_max = 2.08167e-14
|
||||
gravity = Vector3(2.08165e-12, 2.08165e-12, 2.08165e-12)
|
||||
color_ramp = SubResource("GradientTexture1D_udo51")
|
||||
emission_curve = SubResource("CurveTexture_h0khy")
|
||||
hue_variation_min = -0.2
|
||||
hue_variation_max = 0.2
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6p8b5"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = ExtResource("2_rfyul")
|
||||
emission = Color(1, 1, 1, 1)
|
||||
emission_energy_multiplier = 0.0
|
||||
rim_enabled = true
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_gs1vn"]
|
||||
material = SubResource("StandardMaterial3D_6p8b5")
|
||||
size = Vector2(0.9, 0.9)
|
||||
orientation = 1
|
||||
|
||||
[sub_resource type="Curve" id="Curve_dk8fi"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_nursa"]
|
||||
curve = SubResource("Curve_dk8fi")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_oxwdp"]
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 0.4
|
||||
gravity = Vector3(2.08165e-12, 0.3, 2.08165e-12)
|
||||
scale_curve = SubResource("CurveTexture_nursa")
|
||||
hue_variation_min = -1.0
|
||||
hue_variation_max = 1.0
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2fbg6"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = ExtResource("3_cobuj")
|
||||
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_04k0d"]
|
||||
material = SubResource("StandardMaterial3D_2fbg6")
|
||||
size = Vector2(0.05, 0.05)
|
||||
|
||||
[node name="Ring Portal" type="GPUParticles3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 2.08165e-12, 2.08165e-12)
|
||||
amount = 1
|
||||
lifetime = 5.0
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_idoxc")
|
||||
draw_pass_1 = SubResource("QuadMesh_hy743")
|
||||
|
||||
[node name="Ring" type="GPUParticles3D" parent="."]
|
||||
amount = 1
|
||||
lifetime = 5.0
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_t36pa")
|
||||
draw_pass_1 = SubResource("QuadMesh_gs1vn")
|
||||
|
||||
[node name="Sparklings" type="GPUParticles3D" parent="."]
|
||||
amount = 16
|
||||
lifetime = 3.0
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_oxwdp")
|
||||
draw_pass_1 = SubResource("QuadMesh_04k0d")
|
Reference in New Issue
Block a user