Rotating noise projection in DM1

feature-rocketlauncher
unfa 2021-12-26 16:21:22 +01:00
parent e8bf866b1b
commit 5ffd281542
4 changed files with 192 additions and 9 deletions

View File

@ -0,0 +1,141 @@
{
"connections": [
{
"from": "perlin",
"from_port": 0,
"to": "directional_blur",
"to_port": 0
},
{
"from": "directional_blur",
"from_port": 0,
"to": "tones",
"to_port": 0
}
],
"label": "Graph",
"longdesc": "",
"name": "@@285",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"export_paths": {
},
"name": "Material",
"node_position": {
"x": 202.337311,
"y": -35.469486
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao": 1,
"depth_scale": 0.5,
"emission_energy": 1,
"flags_transparent": true,
"metallic": 0,
"normal": 1,
"roughness": 1,
"size": 11,
"sss": 0
},
"seed": 0,
"seed_locked": false,
"type": "material"
},
{
"name": "perlin",
"node_position": {
"x": -983,
"y": 97
},
"parameters": {
"iterations": 8,
"persistence": 0.8,
"scale_x": 24,
"scale_y": 24
},
"seed": 0,
"seed_locked": false,
"type": "perlin"
},
{
"name": "directional_blur",
"node_position": {
"x": -556.500122,
"y": 91.581627
},
"parameters": {
"param0": 10,
"param1": 100,
"param2": 0
},
"seed": 0,
"seed_locked": false,
"type": "directional_blur"
},
{
"name": "tones",
"node_position": {
"x": -165.797867,
"y": 58.461533
},
"parameters": {
"in_max": {
"a": 1,
"b": 0.647321,
"g": 0.647321,
"r": 0.647321,
"type": "Color"
},
"in_mid": {
"a": 0.5,
"b": 0.414349,
"g": 0.414349,
"r": 0.414349,
"type": "Color"
},
"in_min": {
"a": 0,
"b": 0.241837,
"g": 0.241837,
"r": 0.241837,
"type": "Color"
},
"out_max": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"out_min": {
"a": 0,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
}
},
"seed": 0,
"seed_locked": false,
"type": "tones"
}
],
"parameters": {
},
"seed": 0,
"seed_locked": false,
"shortdesc": "",
"type": "graph"
}

BIN
Game/Assets/Effects/NoiseBlurredHorizontally.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture2D"
uid="uid://bus2g2qhtpwjj"
path.s3tc="res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.s3tc.stex"
path.etc2="res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.etc2.stex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Effects/NoiseBlurredHorizontally.png"
dest_files=["res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.s3tc.stex", "res://.godot/imported/NoiseBlurredHorizontally.png-0080cac55a53c63e8ae41e67c9e084a2.etc2.stex"]
[params]
compress/mode=2
compress/lossy_quality=0.33
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@ -1,7 +1,8 @@
[gd_scene load_steps=12 format=3 uid="uid://b7txmrrvh1q4e"]
[gd_scene load_steps=13 format=3 uid="uid://b7txmrrvh1q4e"]
[ext_resource type="PackedScene" uid="uid://cbh6i7mi0aqjs" path="res://Map.tscn" id="1_5amr5"]
[ext_resource type="PackedScene" uid="uid://k4alrsehhfbc" path="res://Assets/Maps/DM1/DM1.glb" id="2_ov63e"]
[ext_resource type="Texture2D" uid="uid://bus2g2qhtpwjj" path="res://Assets/Effects/NoiseBlurredHorizontally.png" id="3_yx2bu"]
[ext_resource type="Texture2D" uid="uid://pnh872qjk0oy" path="res://Assets/Effects/Flame.png" id="19_irh18"]
[sub_resource type="FogMaterial" id="FogMaterial_xa7nn"]
@ -16,7 +17,7 @@ loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OmniLight3D4:light_color")
tracks/0/path = NodePath("Energy:light_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
@ -27,8 +28,8 @@ tracks/0/keys = {
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = false
tracks/1/path = NodePath("OmniLight3D4:rotation")
tracks/1/enabled = true
tracks/1/path = NodePath("Energy:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
@ -40,7 +41,7 @@ tracks/1/keys = {
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = false
tracks/2/path = NodePath("OmniLight3D4:light_projector:noise_offset")
tracks/2/path = NodePath("Energy:light_projector:noise_offset")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
@ -67,7 +68,7 @@ length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OmniLight3D4:light_color")
tracks/0/path = NodePath("Energy:light_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
@ -79,7 +80,7 @@ tracks/0/keys = {
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("OmniLight3D4:rotation")
tracks/1/path = NodePath("Energy:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
@ -91,7 +92,7 @@ tracks/1/keys = {
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("OmniLight3D4:light_projector:noise_offset")
tracks/2/path = NodePath("Energy:light_projector:noise_offset")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
@ -365,10 +366,11 @@ shadow_enabled = true
spot_range = 92.0
spot_attenuation = 0.554785
[node name="OmniLight3D4" type="OmniLight3D" parent="Lights" index="6"]
[node name="Energy" type="OmniLight3D" parent="Lights" index="6"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -34, -21, 0)
light_color = Color(1, 0.588235, 0.164706, 1)
light_energy = 80.0
light_projector = ExtResource( "3_yx2bu" )
light_size = 1.0
shadow_enabled = true
omni_range = 65.0