受击特效
parent
6fe727ee3c
commit
4020a3d8d8
@ -0,0 +1,11 @@
|
|||||||
|
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://tlhcll6fyp7q"]
|
||||||
|
|
||||||
|
[ext_resource type="Shader" path="res://render/shader/effect_billboard.gdshader" id="1_jw6vt"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bb0yfk0u4lqqn" path="res://render/texture/shape/flare.png" id="2_x6l5a"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
render_priority = 0
|
||||||
|
shader = ExtResource("1_jw6vt")
|
||||||
|
shader_parameter/glow_color = Color(0.933333, 1, 1, 1)
|
||||||
|
shader_parameter/intensity = 0.5
|
||||||
|
shader_parameter/tex_main = ExtResource("2_x6l5a")
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
[gd_resource type="ParticleProcessMaterial" load_steps=5 format=3 uid="uid://bns2vfyf2qy6u"]
|
||||||
|
|
||||||
|
[sub_resource type="Gradient" id="Gradient_fjosh"]
|
||||||
|
offsets = PackedFloat32Array(0, 0.0894942, 0.684825, 1)
|
||||||
|
colors = PackedColorArray(0.278431, 0.65098, 1, 0, 0.278431, 0.65098, 1, 1, 0.278431, 0.65098, 1, 0.941176, 0.278431, 0.65098, 1, 0)
|
||||||
|
|
||||||
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_cypke"]
|
||||||
|
gradient = SubResource("Gradient_fjosh")
|
||||||
|
|
||||||
|
[sub_resource type="Curve" id="Curve_igjlk"]
|
||||||
|
min_value = 2.0
|
||||||
|
max_value = 4.0
|
||||||
|
_data = [Vector2(0, 4), 0.0, 0.0, 0, 0, Vector2(1, 2), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 2
|
||||||
|
|
||||||
|
[sub_resource type="CurveTexture" id="CurveTexture_5xayb"]
|
||||||
|
curve = SubResource("Curve_igjlk")
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
gravity = Vector3(0, 0, 0)
|
||||||
|
scale_curve = SubResource("CurveTexture_5xayb")
|
||||||
|
color_ramp = SubResource("GradientTexture1D_cypke")
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
shader_type spatial;
|
||||||
|
render_mode blend_add,unshaded;
|
||||||
|
|
||||||
|
uniform sampler2D tex_main : source_color;
|
||||||
|
|
||||||
|
//void vertex() {
|
||||||
|
//mat4 modified_model_view = VIEW_MATRIX * mat4(
|
||||||
|
//INV_VIEW_MATRIX[0],
|
||||||
|
//INV_VIEW_MATRIX[1],
|
||||||
|
//INV_VIEW_MATRIX[2],
|
||||||
|
//MODEL_MATRIX[3]
|
||||||
|
//);
|
||||||
|
//MODELVIEW_MATRIX = modified_model_view;
|
||||||
|
//}
|
||||||
|
|
||||||
|
void fragment() {
|
||||||
|
vec4 col = texture(tex_main, UV);
|
||||||
|
ALBEDO = mix(col.rgb, COLOR.rgb, COLOR.a);
|
||||||
|
ALPHA = col.r;
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bb0yfk0u4lqqn"
|
||||||
|
path="res://.godot/imported/flare.png-3c5c77b68c2b446923833d2d81d06ac1.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://render/texture/shape/flare.png"
|
||||||
|
dest_files=["res://.godot/imported/flare.png-3c5c77b68c2b446923833d2d81d06ac1.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
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
[gd_scene load_steps=5 format=3 uid="uid://io1yfgjm480t"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://script/effect/particle.gd" id="1_qxvm2"]
|
||||||
|
[ext_resource type="Material" uid="uid://tlhcll6fyp7q" path="res://render/material/effect_hit.tres" id="2_54a52"]
|
||||||
|
[ext_resource type="Material" uid="uid://bns2vfyf2qy6u" path="res://render/process_material/hit_normal.tres" id="3_1alqw"]
|
||||||
|
|
||||||
|
[sub_resource type="QuadMesh" id="QuadMesh_0j7av"]
|
||||||
|
|
||||||
|
[node name="Particle" type="Node3D"]
|
||||||
|
script = ExtResource("1_qxvm2")
|
||||||
|
|
||||||
|
[node name="Slash" type="GPUParticles3D" parent="."]
|
||||||
|
material_override = ExtResource("2_54a52")
|
||||||
|
cast_shadow = 0
|
||||||
|
emitting = false
|
||||||
|
amount = 1
|
||||||
|
lifetime = 0.25
|
||||||
|
one_shot = true
|
||||||
|
fixed_fps = 60
|
||||||
|
local_coords = true
|
||||||
|
process_material = ExtResource("3_1alqw")
|
||||||
|
draw_pass_1 = SubResource("QuadMesh_0j7av")
|
||||||
Loading…
Reference in New Issue