building a pure graphics pipeline version of this

This commit is contained in:
2025-08-02 23:23:57 +03:00
parent 93ea79937b
commit 82916425c8
19 changed files with 345 additions and 271 deletions

View File

@@ -1,27 +1,36 @@
[gd_scene load_steps=6 format=3 uid="uid://bf4ohdg0sfl8l"]
[gd_scene load_steps=7 format=3 uid="uid://0q5qa7yiya83"]
[ext_resource type="Script" uid="uid://d1bbllvcal2uw" path="res://slime_simulation.gd" id="1_pxe3a"]
[ext_resource type="Shader" uid="uid://bh4h5oqyhr5bx" path="res://show_simulation.gdshader" id="2_pxe3a"]
[ext_resource type="Script" uid="uid://c6et88s5hp5c7" path="res://slime_simulation.gd" id="1_s6nlv"]
[ext_resource type="Shader" uid="uid://cwt4a55lblykn" path="res://shaders/trail_shader.gdshader" id="3_vkm4v"]
[sub_resource type="Texture2DRD" id="Texture2DRD_pxe3a"]
[sub_resource type="QuadMesh" id="QuadMesh_h0wwo"]
size = Vector2(1920, 1080)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pxe3a"]
shader = ExtResource("2_pxe3a")
shader_parameter/trail_tex = SubResource("Texture2DRD_pxe3a")
[sub_resource type="ViewportTexture" id="ViewportTexture_s6nlv"]
viewport_path = NodePath("SubViewport")
[sub_resource type="QuadMesh" id="QuadMesh_pxe3a"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_evymn"]
shader = ExtResource("3_vkm4v")
[sub_resource type="QuadMesh" id="QuadMesh_s6nlv"]
size = Vector2(1920, 1080)
[node name="SlimeSimulation" type="Node2D"]
script = ExtResource("1_pxe3a")
texture_size = Vector2i(1920, 1080)
decay_factor = 0.8
sensor_angle = 7.0
sensor_distance = 10.0
rng_seed = 8008
script = ExtResource("1_s6nlv")
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
self_modulate = Color(0.581022, 0.701395, 0.890748, 1)
material = SubResource("ShaderMaterial_pxe3a")
[node name="View" type="MeshInstance2D" parent="."]
position = Vector2(960, 540)
mesh = SubResource("QuadMesh_pxe3a")
mesh = SubResource("QuadMesh_h0wwo")
texture = SubResource("ViewportTexture_s6nlv")
[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
handle_input_locally = false
snap_2d_vertices_to_pixel = true
size = Vector2i(1920, 1080)
render_target_update_mode = 4
[node name="Pass1" type="MeshInstance2D" parent="SubViewport"]
material = SubResource("ShaderMaterial_evymn")
position = Vector2(960, 540)
mesh = SubResource("QuadMesh_s6nlv")