Improve raygun ray effect
This commit is contained in:
parent
95e7c6ded4
commit
9c412ef2ed
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://bod6b3befmyt5" path="res://scenes/player/soldier_m.tscn" id="1_jd651"]
|
[ext_resource type="PackedScene" uid="uid://bod6b3befmyt5" path="res://scenes/player/soldier_m.tscn" id="1_jd651"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_3nx84"]
|
||||||
|
glow_enabled = true
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_oh8vq"]
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_oh8vq"]
|
||||||
|
|
||||||
[node name="player" type="LocalPlayer" unique_id=863055906 node_paths=PackedStringArray("camera", "soldier_mesh")]
|
[node name="player" type="LocalPlayer" unique_id=863055906 node_paths=PackedStringArray("camera", "soldier_mesh")]
|
||||||
@ -13,7 +16,9 @@ collision_mask = 4
|
|||||||
|
|
||||||
[node name="camera_3d" type="Camera3D" parent="." unique_id=1773137418]
|
[node name="camera_3d" type="Camera3D" parent="." unique_id=1773137418]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8724979, -0.2644562)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8724979, -0.2644562)
|
||||||
|
environment = SubResource("Environment_3nx84")
|
||||||
current = true
|
current = true
|
||||||
|
fov = 90.0
|
||||||
|
|
||||||
[node name="soldier_m" parent="." unique_id=281995630 instance=ExtResource("1_jd651")]
|
[node name="soldier_m" parent="." unique_id=281995630 instance=ExtResource("1_jd651")]
|
||||||
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0.15878421, 0, 0.19227558)
|
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0.15878421, 0, 0.19227558)
|
||||||
|
|||||||
@ -1,12 +1,16 @@
|
|||||||
[gd_scene format=3 uid="uid://ctslratcr8h6v"]
|
[gd_scene format=3 uid="uid://ctslratcr8h6v"]
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_k5804"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_n6c2q"]
|
||||||
|
shading_mode = 2
|
||||||
|
disable_specular_occlusion = true
|
||||||
|
metallic_specular = 1.0
|
||||||
|
roughness = 0.0
|
||||||
emission_enabled = true
|
emission_enabled = true
|
||||||
emission = Color(1, 0, 1, 1)
|
emission = Color(1, 0, 1, 1)
|
||||||
emission_energy_multiplier = 7.55
|
emission_energy_multiplier = 10.0
|
||||||
|
|
||||||
[sub_resource type="CylinderMesh" id="CylinderMesh_1cgct"]
|
[sub_resource type="CylinderMesh" id="CylinderMesh_1cgct"]
|
||||||
material = SubResource("StandardMaterial3D_k5804")
|
material = SubResource("StandardMaterial3D_n6c2q")
|
||||||
top_radius = 0.2
|
top_radius = 0.2
|
||||||
bottom_radius = 0.2
|
bottom_radius = 0.2
|
||||||
height = 1.0
|
height = 1.0
|
||||||
|
|||||||
@ -66,7 +66,7 @@ impl INode3D for Bullet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn process(&mut self, _delta: f32) {
|
fn process(&mut self, _delta: f32) {
|
||||||
self.girth = self.girth.lerp(0., 0.15);
|
self.girth = self.girth.lerp(0., 0.07);
|
||||||
self.scale();
|
self.scale();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user