diff --git a/Examples/07 VFX/Flash.tscn b/Examples/07 VFX/Flash.tscn index 56db116..a2e6b56 100644 --- a/Examples/07 VFX/Flash.tscn +++ b/Examples/07 VFX/Flash.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=69 format=4 uid="uid://dk0p4j4bvakwj"] +[gd_scene load_steps=82 format=4 uid="uid://dk0p4j4bvakwj"] [ext_resource type="Shader" path="res://Packed/Setup/Sky.gdshader" id="1_1r6xr"] [ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Networking/NetworkManager.cs" id="1_cotb1"] @@ -34,7 +34,6 @@ [ext_resource type="Resource" uid="uid://dipvwksvqb3dm" path="res://addons/SphynxMotionBlurToolkit/Guertin/guertin_tile_max_x_stage.tres" id="28_0pyew"] [ext_resource type="Resource" uid="uid://bxfg45ubc2pv7" path="res://addons/SphynxMotionBlurToolkit/Guertin/guertin_tile_max_y_stage.tres" id="29_ae74o"] [ext_resource type="Resource" uid="uid://bqehecsdgt70s" path="res://addons/SphynxMotionBlurToolkit/Guertin/guertin_tile_variance_stage.tres" id="30_jph5g"] -[ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Sensors/OnSensor.cs" id="34_8e6hy"] [ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Interactions/Pointer.cs" id="34_axy5m"] [ext_resource type="PackedScene" uid="uid://igjwcq828c3x" path="res://Packed/Character/character.glb" id="34_iqgaf"] [ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Actions/OnProcess.cs" id="35_3nues"] @@ -47,8 +46,12 @@ [ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Interactions/Pointable.cs" id="38_iknbl"] [ext_resource type="Resource" uid="uid://bfxwx0fiejnk3" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/Blue Shield - Flash.tres" id="39_1edeu"] [ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Interactions/Interactor.cs" id="39_ovot1"] -[ext_resource type="Shader" uid="uid://bmgpmbthlfon3" path="res://addons/rokojori_action_library/Runtime/Shading/Shaders/Effects/Outline/Outline.tres" id="43_vsqdy"] [ext_resource type="Script" path="res://addons/rokojori_action_library/Runtime/Interactions/Interactable.cs" id="44_4apug"] +[ext_resource type="Resource" uid="uid://dadr1kd14m7g3" path="res://addons/rokojori_action_library/Runtime/Animation/Highlight/Presets/White Outline - Highlight.tres" id="44_48vee"] +[ext_resource type="Resource" uid="uid://drjdsp2qnceql" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/Green Charge - Flash.tres" id="49_td0wp"] +[ext_resource type="Resource" uid="uid://d06w8jorebto2" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/Orange Boost - Flash.tres" id="50_uj384"] +[ext_resource type="Resource" uid="uid://pok7bfoksfmr" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/White Blinking - Flash.tres" id="51_iktfu"] +[ext_resource type="Resource" uid="uid://cwdnm658q3jta" path="res://addons/rokojori_action_library/Runtime/Animation/Flash/Presets/Red Hit - Flash.tres" id="52_pmlj5"] [sub_resource type="Gradient" id="Gradient_lfbf4"] offsets = PackedFloat32Array(0.390947, 0.44856, 0.469136, 0.534979, 0.711934, 0.851852) @@ -66,9 +69,12 @@ shader_parameter/star_size = 0.02 shader_parameter/star_falloff = 6.865 shader_parameter/margin = 0.965 shader_parameter/starOpacity = 1.0 -shader_parameter/starsNoiseScale = 1.0 -shader_parameter/starsNoiseDivision = 100001.0 -shader_parameter/starsNoiseOffset = Vector2(25.97, 0.01) +shader_parameter/starsNoiseScale = 10.125 +shader_parameter/starsNoiseOffset = Vector3(0, 0, 0) +shader_parameter/starsNoiseScale2 = 500.0 +shader_parameter/starsNoiseOffset2 = Vector3(0, 0, 0) +shader_parameter/starsOverlayOpacity = 0.02 +shader_parameter/starsOverlayOffset = -0.63 shader_parameter/verticalColor = SubResource("GradientTexture2D_rim8p") [sub_resource type="Sky" id="Sky_6f3cg"] @@ -93,6 +99,8 @@ fog_sky_affect = 0.0 [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_0tow3"] dof_blur_near_enabled = true +dof_blur_near_distance = 0.4 +dof_blur_near_transition = 0.25 [sub_resource type="CompositorEffect" id="CompositorEffect_4lfo8"] resource_local_to_scene = false @@ -134,11 +142,145 @@ compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_4lfo script = ExtResource("19_tywpm") samples = 32 intensity = 0.5 -center_fade = 0.445 +center_fade = 0.0 framerate_independent = true uncapped_independence = false target_constant_framerate = 30.0 +[sub_resource type="ArrayMesh" id="ArrayMesh_2m7yo"] +_surfaces = [{ +"aabb": AABB(-0.5, -0.5, -0.5, 1, 1, 1), +"attribute_data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), +"format": 34359742487, +"index_count": 132, +"index_data": PackedByteArray("AgABAAAAAQACAAMADgAFAAYABQAOAA0AEwAHAAsABwATAA8ADAAIAAQACAAMABAAEQAKAAkACgARABIADwAGAAcABgAPAA4AEgALAAoACwASABMAEAAJAAgACQAQABEADQAEAAUABAANAAwAAAAFAAQADAANABQAAQAHAAYADgAPABUAAgAIAAkAEQAQABYAAwAKAAsAEwASABcABgAAAAEAAAAGAAUADQAVABQAFQANAA4ACwABAAMAAQALAAcADwAXABUAFwAPABMACQADAAIAAwAJAAoAEgAWABcAFgASABEABAACAAAAAgAEAAgAEAAUABYAFAAQAAwAFwAUABUAFAAXABYA"), +"primitive": 3, +"uv_scale": Vector4(0, 0, 0, 0), +"vertex_count": 24, +"vertex_data": PackedByteArray("ZmbmvgAAAD9mZuY+ZmbmPgAAAD9mZuY+ZmbmvgAAAD9mZua+ZmbmPgAAAD9mZua+AAAAv2Zm5j5mZuY+ZmbmvmZm5j4AAAA/ZmbmPmZm5j4AAAA/AAAAP2Zm5j5mZuY+AAAAv2Zm5j5mZua+ZmbmvmZm5j4AAAC/ZmbmPmZm5j4AAAC/AAAAP2Zm5j5mZua+AAAAv2Zm5r5mZuY+ZmbmvmZm5r4AAAA/ZmbmPmZm5r4AAAA/AAAAP2Zm5r5mZuY+AAAAv2Zm5r5mZua+ZmbmvmZm5r4AAAC/ZmbmPmZm5r4AAAC/AAAAP2Zm5r5mZua+ZmbmvgAAAL9mZuY+ZmbmPgAAAL9mZuY+ZmbmvgAAAL9mZua+ZmbmPgAAAL9mZua+/3///wAA/7//f///AAD/v/9///8AAP+//3///wAA/78AAP9//3//v/9//3//fwCA/3//f/9/AID///9//3//vwAA/3//f/+///////9/AID//////38AgP///3//f/+/AAD/f/9//7//f/9//38AgP9//3//fwCA////f/9//78AAP9//3//v///////fwCA//////9/AID///9//3//v/9/AAAAAP+//38AAAAA/7//fwAAAAD/v/9/AAAAAP+/") +}] + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_evgdl"] +frequency = 0.0054 +fractal_lacunarity = 2.555 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7uutl"] +width = 2048 +height = 2048 +seamless = true +as_normal_map = true +noise = SubResource("FastNoiseLite_evgdl") + +[sub_resource type="Gradient" id="Gradient_jj1ne"] + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_k6fd8"] +frequency = 0.0043 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_1yxdp"] +seamless = true +seamless_blend_skirt = 0.177 +color_ramp = SubResource("Gradient_jj1ne") +noise = SubResource("FastNoiseLite_k6fd8") + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_x746g"] +albedo_color = Color(0.230469, 0.222366, 0.222366, 1) +metallic = 0.41 +metallic_specular = 0.25 +roughness = 0.85 +roughness_texture = SubResource("NoiseTexture2D_1yxdp") +emission = Color(0.328125, 0.0487061, 0.0487061, 1) +normal_enabled = true +normal_texture = SubResource("NoiseTexture2D_7uutl") +uv1_triplanar = true + +[sub_resource type="ArrayMesh" id="ArrayMesh_c3qte"] +_surfaces = [{ +"aabb": AABB(-0.25, -0.25, -0.25, 0.5, 0.5, 0.5), +"attribute_data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), +"format": 34359742487, +"index_count": 132, +"index_data": PackedByteArray("AgABAAAAAQACAAMADgAFAAYABQAOAA0AEwAHAAsABwATAA8ADAAIAAQACAAMABAAEQAKAAkACgARABIADwAGAAcABgAPAA4AEgALAAoACwASABMAEAAJAAgACQAQABEADQAEAAUABAANAAwAAAAFAAQADAANABQAAQAHAAYADgAPABUAAgAIAAkAEQAQABYAAwAKAAsAEwASABcABgAAAAEAAAAGAAUADQAVABQAFQANAA4ACwABAAMAAQALAAcADwAXABUAFwAPABMACQADAAIAAwAJAAoAEgAWABcAFgASABEABAACAAAAAgAEAAgAEAAUABYAFAAQAAwAFwAUABUAFAAXABYA"), +"primitive": 3, +"uv_scale": Vector4(0, 0, 0, 0), +"vertex_count": 24, +"vertex_data": PackedByteArray("zcxMvgAAgD7NzEw+zcxMPgAAgD7NzEw+zcxMvgAAgD7NzEy+zcxMPgAAgD7NzEy+AACAvs3MTD7NzEw+zcxMvs3MTD4AAIA+zcxMPs3MTD4AAIA+AACAPs3MTD7NzEw+AACAvs3MTD7NzEy+zcxMvs3MTD4AAIC+zcxMPs3MTD4AAIC+AACAPs3MTD7NzEy+AACAvs3MTL7NzEw+zcxMvs3MTL4AAIA+zcxMPs3MTL4AAIA+AACAPs3MTL7NzEw+AACAvs3MTL7NzEy+zcxMvs3MTL4AAIC+zcxMPs3MTL4AAIC+AACAPs3MTL7NzEy+zcxMvgAAgL7NzEw+zcxMPgAAgL7NzEw+zcxMvgAAgL7NzEy+zcxMPgAAgL7NzEy+/3///wAA/7//f///AAD/v/9///8AAP+//3///wAA/78AAP9//3//v/9//3//fwCA/3//f/9/AID///9//3//vwAA/3//f/+///////9/AID//////38AgP///3//f/+/AAD/f/9//7//f/9//38AgP9//3//fwCA////f/9//78AAP9//3//v///////fwCA//////9/AID///9//3//v/9/AAAAAP+//38AAAAA/7//fwAAAAD/v/9/AAAAAP+/") +}] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ylj0b"] +albedo_color = Color(0.132813, 0.24176, 0.53125, 1) +metallic = 1.0 +metallic_specular = 0.25 +roughness = 0.62 +roughness_texture = SubResource("NoiseTexture2D_1yxdp") +emission_enabled = true +emission = Color(0.0136871, 0.0256029, 0.152344, 1) +normal_enabled = true +normal_texture = SubResource("NoiseTexture2D_7uutl") +uv1_triplanar = true + +[sub_resource type="BoxShape3D" id="BoxShape3D_tgb73"] +size = Vector3(0.5, 0.5, 0.5) + +[sub_resource type="ArrayMesh" id="ArrayMesh_lvr3s"] +_surfaces = [{ +"aabb": AABB(-0.25, -0.25, -0.25, 0.5, 0.5, 0.5), +"attribute_data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), +"format": 34359742487, +"index_count": 132, +"index_data": PackedByteArray("AgABAAAAAQACAAMADgAFAAYABQAOAA0AEwAHAAsABwATAA8ADAAIAAQACAAMABAAEQAKAAkACgARABIADwAGAAcABgAPAA4AEgALAAoACwASABMAEAAJAAgACQAQABEADQAEAAUABAANAAwAAAAFAAQADAANABQAAQAHAAYADgAPABUAAgAIAAkAEQAQABYAAwAKAAsAEwASABcABgAAAAEAAAAGAAUADQAVABQAFQANAA4ACwABAAMAAQALAAcADwAXABUAFwAPABMACQADAAIAAwAJAAoAEgAWABcAFgASABEABAACAAAAAgAEAAgAEAAUABYAFAAQAAwAFwAUABUAFAAXABYA"), +"primitive": 3, +"uv_scale": Vector4(0, 0, 0, 0), +"vertex_count": 24, +"vertex_data": PackedByteArray("zcxMvgAAgD7NzEw+zcxMPgAAgD7NzEw+zcxMvgAAgD7NzEy+zcxMPgAAgD7NzEy+AACAvs3MTD7NzEw+zcxMvs3MTD4AAIA+zcxMPs3MTD4AAIA+AACAPs3MTD7NzEw+AACAvs3MTD7NzEy+zcxMvs3MTD4AAIC+zcxMPs3MTD4AAIC+AACAPs3MTD7NzEy+AACAvs3MTL7NzEw+zcxMvs3MTL4AAIA+zcxMPs3MTL4AAIA+AACAPs3MTL7NzEw+AACAvs3MTL7NzEy+zcxMvs3MTL4AAIC+zcxMPs3MTL4AAIC+AACAPs3MTL7NzEy+zcxMvgAAgL7NzEw+zcxMPgAAgL7NzEw+zcxMvgAAgL7NzEy+zcxMPgAAgL7NzEy+/3///wAA/7//f///AAD/v/9///8AAP+//3///wAA/78AAP9//3//v/9//3//fwCA/3//f/9/AID///9//3//vwAA/3//f/+///////9/AID//////38AgP///3//f/+/AAD/f/9//7//f/9//38AgP9//3//fwCA////f/9//78AAP9//3//v///////fwCA//////9/AID///9//3//v/9/AAAAAP+//38AAAAA/7//fwAAAAD/v/9/AAAAAP+/") +}] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ag5d1"] +albedo_color = Color(0.173279, 0.53125, 0.132813, 1) +metallic = 1.0 +metallic_specular = 0.25 +roughness = 0.62 +roughness_texture = SubResource("NoiseTexture2D_1yxdp") +emission_enabled = true +emission = Color(0.0136871, 0.152344, 0.0321025, 1) +normal_enabled = true +normal_texture = SubResource("NoiseTexture2D_7uutl") +uv1_triplanar = true + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8kxh0"] +albedo_color = Color(0.855469, 0.492897, 0.106934, 1) +metallic = 1.0 +metallic_specular = 0.25 +roughness = 0.62 +roughness_texture = SubResource("NoiseTexture2D_1yxdp") +emission_enabled = true +emission = Color(0.152344, 0.0786824, 0.0136871, 1) +normal_enabled = true +normal_texture = SubResource("NoiseTexture2D_7uutl") +uv1_triplanar = true + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_o4ujy"] +metallic = 1.0 +metallic_specular = 0.25 +roughness = 0.62 +roughness_texture = SubResource("NoiseTexture2D_1yxdp") +emission_enabled = true +emission = Color(0.152344, 0.152344, 0.152344, 1) +normal_enabled = true +normal_texture = SubResource("NoiseTexture2D_7uutl") +uv1_triplanar = true + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wl8dk"] +albedo_color = Color(1, 0, 0, 1) +metallic = 1.0 +metallic_specular = 0.25 +roughness = 0.62 +roughness_texture = SubResource("NoiseTexture2D_1yxdp") +emission_enabled = true +emission = Color(0.328125, 0.0487061, 0.0487061, 1) +normal_enabled = true +normal_texture = SubResource("NoiseTexture2D_7uutl") +uv1_triplanar = true + [sub_resource type="ArrayMesh" id="ArrayMesh_5gsj3"] _surfaces = [{ "aabb": AABB(-0.5, -0.5, -0.5, 1, 1, 1), @@ -152,47 +294,15 @@ _surfaces = [{ "vertex_data": PackedByteArray("ZmbmvgAAAD9mZuY+ZmbmPgAAAD9mZuY+ZmbmvgAAAD9mZua+ZmbmPgAAAD9mZua+AAAAv2Zm5j5mZuY+ZmbmvmZm5j4AAAA/ZmbmPmZm5j4AAAA/AAAAP2Zm5j5mZuY+AAAAv2Zm5j5mZua+ZmbmvmZm5j4AAAC/ZmbmPmZm5j4AAAC/AAAAP2Zm5j5mZua+AAAAv2Zm5r5mZuY+ZmbmvmZm5r4AAAA/ZmbmPmZm5r4AAAA/AAAAP2Zm5r5mZuY+AAAAv2Zm5r5mZua+ZmbmvmZm5r4AAAC/ZmbmPmZm5r4AAAC/AAAAP2Zm5r5mZua+ZmbmvgAAAL9mZuY+ZmbmPgAAAL9mZuY+ZmbmvgAAAL9mZua+ZmbmPgAAAL9mZua+/3///wAA/7//f///AAD/v/9///8AAP+//3///wAA/78AAP9//3//v/9//3//fwCA/3//f/9/AID///9//3//vwAA/3//f/+///////9/AID//////38AgP///3//f/+/AAD/f/9//7//f/9//38AgP9//3//fwCA////f/9//78AAP9//3//v///////fwCA//////9/AID///9//3//v/9/AAAAAP+//38AAAAA/7//fwAAAAD/v/9/AAAAAP+/") }] -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ak8yx"] -render_priority = 0 -shader = ExtResource("43_vsqdy") -shader_parameter/albedo = Color(1, 1, 1, 1) -shader_parameter/sizeClose = 1.0 -shader_parameter/sizeFar = 0.0 -shader_parameter/closeDistance = 5.0 -shader_parameter/farDistance = 50.0 - -[sub_resource type="FastNoiseLite" id="FastNoiseLite_evgdl"] -frequency = 0.0054 -fractal_lacunarity = 2.555 - -[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7uutl"] -width = 2048 -height = 2048 -seamless = true -as_normal_map = true -noise = SubResource("FastNoiseLite_evgdl") - [sub_resource type="Gradient" id="Gradient_e5v7b"] -[sub_resource type="FastNoiseLite" id="FastNoiseLite_8pji8"] +[sub_resource type="FastNoiseLite" id="FastNoiseLite_ocdmi"] frequency = 0.0073 [sub_resource type="NoiseTexture2D" id="NoiseTexture2D_rbhss"] seamless = true color_ramp = SubResource("Gradient_e5v7b") -noise = SubResource("FastNoiseLite_8pji8") - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kc4hg"] -next_pass = SubResource("ShaderMaterial_ak8yx") -albedo_color = Color(0.15625, 0.0756836, 0.0756836, 1) -metallic = 0.47 -metallic_specular = 0.25 -roughness_texture = SubResource("NoiseTexture2D_rbhss") -normal_enabled = true -normal_texture = SubResource("NoiseTexture2D_7uutl") -uv1_triplanar = true - -[sub_resource type="BoxShape3D" id="BoxShape3D_tgb73"] +noise = SubResource("FastNoiseLite_ocdmi") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mmiv8"] albedo_color = Color(0.15625, 0.0756836, 0.0756836, 1) @@ -326,11 +436,10 @@ shadow_enabled = true [node name="OmniLight3D4" type="OmniLight3D" parent="App Setup/Dark Scene"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.4893, -0.364594, 0.850517) -[node name="Interactions" type="Node" parent="App Setup"] +[node name="ReflectionProbe" type="ReflectionProbe" parent="App Setup/Dark Scene"] +size = Vector3(500, 500, 500) -[node name="Pointer" type="Node3D" parent="App Setup/Interactions" node_paths=PackedStringArray("caster")] -script = ExtResource("34_axy5m") -caster = NodePath("../RayCaster/MultiRayCaster") +[node name="Interactions" type="Node" parent="App Setup"] [node name="RayCaster" type="Node" parent="App Setup/Interactions"] @@ -363,6 +472,10 @@ script = ExtResource("37_ra6bk") lookFrom = NodePath("../../MultiRayCaster") lookTarget = NodePath("../../Look At Target") +[node name="Pointer" type="Node3D" parent="App Setup/Interactions" node_paths=PackedStringArray("caster")] +script = ExtResource("34_axy5m") +caster = NodePath("../RayCaster/MultiRayCaster") + [node name="Interactor" type="Node3D" parent="App Setup/Interactions" node_paths=PackedStringArray("pointer")] script = ExtResource("39_ovot1") pointer = NodePath("../Pointer") @@ -373,44 +486,202 @@ button = ExtResource("35_gwiry") [node name="character" parent="Node3D" instance=ExtResource("34_iqgaf")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.18049, 0, 3.50792) -[node name="Cuboid4" type="Node3D" parent="Node3D" node_paths=PackedStringArray("output")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.91883, 4.76837e-07, 1.61163) +[node name="Black Cube" type="Node3D" parent="Node3D/character" node_paths=PackedStringArray("output")] +transform = Transform3D(0.195758, 0, 0.980652, 0, 1, 0, -0.980652, 0, 0.195758, 1.78926, 2.38418e-07, -0.0298195) script = ExtResource("18_6u4rt") borderSize = 0.05 output = NodePath("MeshInstance3D") metadata/_edit_group_ = true -[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/Cuboid4"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) -mesh = SubResource("ArrayMesh_5gsj3") -surface_material_override/0 = SubResource("StandardMaterial3D_kc4hg") +[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/character/Black Cube"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.946368, 0.5, -2.0693) +mesh = SubResource("ArrayMesh_2m7yo") +surface_material_override/0 = SubResource("StandardMaterial3D_x746g") -[node name="StaticBody3D" type="StaticBody3D" parent="Node3D/Cuboid4"] +[node name="Shield Cube" type="Node3D" parent="Node3D" node_paths=PackedStringArray("output")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.24179, 2.38418e-07, 3.41945) +script = ExtResource("18_6u4rt") +size = 0.5 +borderSize = 0.05 +output = NodePath("MeshInstance3D") +metadata/_edit_group_ = true -[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D/Cuboid4/StaticBody3D"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.518866, 0) +[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/Shield Cube"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +mesh = SubResource("ArrayMesh_c3qte") +surface_material_override/0 = SubResource("StandardMaterial3D_ylj0b") + +[node name="StaticBody3D" type="StaticBody3D" parent="Node3D/Shield Cube"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D/Shield Cube/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) shape = SubResource("BoxShape3D_tgb73") -[node name="Pointable" type="Node3D" parent="Node3D/Cuboid4/StaticBody3D"] +[node name="Pointable" type="Node3D" parent="Node3D/Shield Cube/StaticBody3D" node_paths=PackedStringArray("highlightTargets")] script = ExtResource("38_iknbl") +highlightEffect = ExtResource("44_48vee") +highlightTargets = [NodePath("../../MeshInstance3D")] -[node name="Interactable" type="Node3D" parent="Node3D/Cuboid4/StaticBody3D" node_paths=PackedStringArray("onInteraction")] +[node name="Interactable" type="Node3D" parent="Node3D/Shield Cube/StaticBody3D" node_paths=PackedStringArray("onInteraction")] script = ExtResource("44_4apug") -onInteraction = NodePath("../../../OnSensor/ActionList") +onInteraction = NodePath("../../OnInteraction") -[node name="OnSensor" type="Node" parent="Node3D" node_paths=PackedStringArray("onStart")] -script = ExtResource("34_8e6hy") -sensor = ExtResource("35_gwiry") -onStart = NodePath("ActionList") - -[node name="ActionList" type="Node" parent="Node3D/OnSensor" node_paths=PackedStringArray("actions")] +[node name="OnInteraction" type="Node" parent="Node3D/Shield Cube" node_paths=PackedStringArray("actions")] script = ExtResource("36_48c1t") actions = [] -[node name="Flash" type="Node" parent="Node3D/OnSensor/ActionList" node_paths=PackedStringArray("targets")] +[node name="Flash" type="Node" parent="Node3D/Shield Cube/OnInteraction" node_paths=PackedStringArray("targets")] script = ExtResource("37_jrcib") flashEffect = ExtResource("39_1edeu") -targets = [NodePath("../../../character/Armature/Skeleton3D/Beta_Joints"), NodePath("../../../character/Armature/Skeleton3D/Beta_Surface")] +targets = [NodePath("../../../character/Armature/Skeleton3D/Beta_Joints"), NodePath("../../../character/Armature/Skeleton3D/Beta_Surface"), NodePath("../../../character/Black Cube/MeshInstance3D")] + +[node name="Health Cube" type="Node3D" parent="Node3D" node_paths=PackedStringArray("output")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.0115, 2.38418e-07, 4.57673) +script = ExtResource("18_6u4rt") +size = 0.5 +borderSize = 0.05 +output = NodePath("MeshInstance3D") +metadata/_edit_group_ = true + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/Health Cube"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +mesh = SubResource("ArrayMesh_lvr3s") +surface_material_override/0 = SubResource("StandardMaterial3D_ag5d1") + +[node name="StaticBody3D" type="StaticBody3D" parent="Node3D/Health Cube"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D/Health Cube/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +shape = SubResource("BoxShape3D_tgb73") + +[node name="Pointable" type="Node3D" parent="Node3D/Health Cube/StaticBody3D" node_paths=PackedStringArray("highlightTargets")] +script = ExtResource("38_iknbl") +highlightEffect = ExtResource("44_48vee") +highlightTargets = [NodePath("../../MeshInstance3D")] + +[node name="Interactable" type="Node3D" parent="Node3D/Health Cube/StaticBody3D" node_paths=PackedStringArray("onInteraction")] +script = ExtResource("44_4apug") +onInteraction = NodePath("../../OnInteraction") + +[node name="OnInteraction" type="Node" parent="Node3D/Health Cube" node_paths=PackedStringArray("actions")] +script = ExtResource("36_48c1t") +actions = [] + +[node name="Flash" type="Node" parent="Node3D/Health Cube/OnInteraction" node_paths=PackedStringArray("targets")] +script = ExtResource("37_jrcib") +flashEffect = ExtResource("49_td0wp") +targets = [NodePath("../../../character/Armature/Skeleton3D/Beta_Joints"), NodePath("../../../character/Armature/Skeleton3D/Beta_Surface"), NodePath("../../../character/Black Cube/MeshInstance3D")] + +[node name="Boost Cube" type="Node3D" parent="Node3D" node_paths=PackedStringArray("output")] +transform = Transform3D(0.836535, 0, 0.547914, 0, 1, 0, -0.547914, 0, 0.836535, 4.07833, 2.38418e-07, 4.8557) +script = ExtResource("18_6u4rt") +size = 0.5 +borderSize = 0.05 +output = NodePath("MeshInstance3D") +metadata/_edit_group_ = true + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/Boost Cube"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +mesh = SubResource("ArrayMesh_lvr3s") +surface_material_override/0 = SubResource("StandardMaterial3D_8kxh0") + +[node name="StaticBody3D" type="StaticBody3D" parent="Node3D/Boost Cube"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D/Boost Cube/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +shape = SubResource("BoxShape3D_tgb73") + +[node name="Pointable" type="Node3D" parent="Node3D/Boost Cube/StaticBody3D" node_paths=PackedStringArray("highlightTargets")] +script = ExtResource("38_iknbl") +highlightEffect = ExtResource("44_48vee") +highlightTargets = [NodePath("../../MeshInstance3D")] + +[node name="Interactable" type="Node3D" parent="Node3D/Boost Cube/StaticBody3D" node_paths=PackedStringArray("onInteraction")] +script = ExtResource("44_4apug") +onInteraction = NodePath("../../OnInteraction") + +[node name="OnInteraction" type="Node" parent="Node3D/Boost Cube" node_paths=PackedStringArray("actions")] +script = ExtResource("36_48c1t") +actions = [] + +[node name="Flash" type="Node" parent="Node3D/Boost Cube/OnInteraction" node_paths=PackedStringArray("targets")] +script = ExtResource("37_jrcib") +flashEffect = ExtResource("50_uj384") +targets = [NodePath("../../../character/Armature/Skeleton3D/Beta_Joints"), NodePath("../../../character/Armature/Skeleton3D/Beta_Surface"), NodePath("../../../character/Black Cube/MeshInstance3D")] + +[node name="Blink Cube" type="Node3D" parent="Node3D" node_paths=PackedStringArray("output")] +transform = Transform3D(0.614561, 0, 0.78887, 0, 1, 0, -0.78887, 0, 0.614561, 5.29915, 2.38418e-07, 4.54634) +script = ExtResource("18_6u4rt") +size = 0.5 +borderSize = 0.05 +output = NodePath("MeshInstance3D") +metadata/_edit_group_ = true + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/Blink Cube"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +mesh = SubResource("ArrayMesh_lvr3s") +surface_material_override/0 = SubResource("StandardMaterial3D_o4ujy") + +[node name="StaticBody3D" type="StaticBody3D" parent="Node3D/Blink Cube"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D/Blink Cube/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +shape = SubResource("BoxShape3D_tgb73") + +[node name="Pointable" type="Node3D" parent="Node3D/Blink Cube/StaticBody3D" node_paths=PackedStringArray("highlightTargets")] +script = ExtResource("38_iknbl") +highlightEffect = ExtResource("44_48vee") +highlightTargets = [NodePath("../../MeshInstance3D")] + +[node name="Interactable" type="Node3D" parent="Node3D/Blink Cube/StaticBody3D" node_paths=PackedStringArray("onInteraction")] +script = ExtResource("44_4apug") +onInteraction = NodePath("../../OnInteraction") + +[node name="OnInteraction" type="Node" parent="Node3D/Blink Cube" node_paths=PackedStringArray("actions")] +script = ExtResource("36_48c1t") +actions = [] + +[node name="Flash" type="Node" parent="Node3D/Blink Cube/OnInteraction" node_paths=PackedStringArray("targets")] +script = ExtResource("37_jrcib") +flashEffect = ExtResource("51_iktfu") +targets = [NodePath("../../../character/Armature/Skeleton3D/Beta_Joints"), NodePath("../../../character/Armature/Skeleton3D/Beta_Surface"), NodePath("../../../character/Black Cube/MeshInstance3D")] + +[node name="Impact Cube" type="Node3D" parent="Node3D" node_paths=PackedStringArray("output")] +transform = Transform3D(0.195758, 0, 0.980652, 0, 1, 0, -0.980652, 0, 0.195758, 5.96975, 2.38418e-07, 3.4781) +script = ExtResource("18_6u4rt") +size = 0.5 +borderSize = 0.05 +output = NodePath("MeshInstance3D") +metadata/_edit_group_ = true + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D/Impact Cube"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +mesh = SubResource("ArrayMesh_lvr3s") +surface_material_override/0 = SubResource("StandardMaterial3D_wl8dk") + +[node name="StaticBody3D" type="StaticBody3D" parent="Node3D/Impact Cube"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D/Impact Cube/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0) +shape = SubResource("BoxShape3D_tgb73") + +[node name="Pointable" type="Node3D" parent="Node3D/Impact Cube/StaticBody3D" node_paths=PackedStringArray("highlightTargets")] +script = ExtResource("38_iknbl") +highlightEffect = ExtResource("44_48vee") +highlightTargets = [NodePath("../../MeshInstance3D")] + +[node name="Interactable" type="Node3D" parent="Node3D/Impact Cube/StaticBody3D" node_paths=PackedStringArray("onInteraction")] +script = ExtResource("44_4apug") +onInteraction = NodePath("../../OnInteraction") + +[node name="OnInteraction" type="Node" parent="Node3D/Impact Cube" node_paths=PackedStringArray("actions")] +script = ExtResource("36_48c1t") +actions = [] + +[node name="Flash" type="Node" parent="Node3D/Impact Cube/OnInteraction" node_paths=PackedStringArray("targets")] +script = ExtResource("37_jrcib") +flashEffect = ExtResource("52_pmlj5") +targets = [NodePath("../../../character/Armature/Skeleton3D/Beta_Joints"), NodePath("../../../character/Armature/Skeleton3D/Beta_Surface"), NodePath("../../../character/Black Cube/MeshInstance3D")] [node name="Cubes" type="Node3D" parent="Node3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.24594, -4.76837e-07, -3.11724) diff --git a/Packed/Setup/Dark-Ground.material b/Packed/Setup/Dark-Ground.material index 6eb4f33..6fd1b4b 100644 Binary files a/Packed/Setup/Dark-Ground.material and b/Packed/Setup/Dark-Ground.material differ diff --git a/Packed/Setup/Sky.gdshader b/Packed/Setup/Sky.gdshader index 6018ec4..d148981 100644 --- a/Packed/Setup/Sky.gdshader +++ b/Packed/Setup/Sky.gdshader @@ -12,8 +12,11 @@ uniform float margin = 0.05; // How far the star is from the edge of it's sectio uniform sampler2D verticalColor: source_color; uniform float starOpacity = 0; uniform float starsNoiseScale = 1; -uniform float starsNoiseDivision = 1; -uniform vec2 starsNoiseOffset =vec2(0,0); +uniform vec3 starsNoiseOffset =vec3(0,0,0); +uniform float starsNoiseScale2 = 1; +uniform vec3 starsNoiseOffset2 =vec3(0,0,0); +uniform float starsOverlayOpacity = 0.1; +uniform float starsOverlayOffset = -0.5; vec2 get_partition( vec2 sky_coords ) { @@ -46,8 +49,15 @@ float star_brightness(vec2 sky_coords) void sky() { - vec3 stars= clamp( vec3( star_brightness( SKY_COORDS ) ), vec3(0,0,0), vec3(1,1,1) ); - float starsLight = random( ( starsNoiseOffset+ SKY_COORDS ) * starsNoiseScale / starsNoiseDivision ); - COLOR = stars* starOpacity * starsLight + texture( verticalColor, SKY_COORDS ).rgb ; + float stars = clamp( star_brightness( SKY_COORDS )/1000.0,0, 1); + float starsLight = perlin3D( ( starsNoiseOffset * TIME + EYEDIR.xzy ) * starsNoiseScale ); + float starsLight2 = perlin3D( ( starsNoiseOffset2 * TIME + EYEDIR.xzy ) * starsNoiseScale2 ); + starsLight2 = clamp( starsLight2 + starsOverlayOffset, 0,1 ) * starsOverlayOpacity; + + COLOR = stars* starOpacity * starsLight + texture( verticalColor, SKY_COORDS ).rgb + starsLight2; + //COLOR = vec3(1,1,1) * ( starsLight ); + + //float angleXZ = mod( atan( EYEDIR.z, EYEDIR.x ), PI * 2.0 ); + //COLOR = vec3( angleXZ / ( PI * 2.0 ), 0, 0 ); // vec3( star_brightness( SKY_COORDS ) ); } diff --git a/addons/rokojori_action_library b/addons/rokojori_action_library index 5c4afd2..b866c2e 160000 --- a/addons/rokojori_action_library +++ b/addons/rokojori_action_library @@ -1 +1 @@ -Subproject commit 5c4afd2dfe53f94916b26426ee02c06137201eeb +Subproject commit b866c2ef9ec7280c4bf35575c0a09ab0bc6db47a