visual changes, refactoring to prevent future bugs

This commit is contained in:
The 64th Gamer 2025-04-08 02:16:29 -06:00
parent 0ca3911519
commit ddfa591400
7 changed files with 35 additions and 9 deletions

5
Materials/Eye Black.tres Normal file
View file

@ -0,0 +1,5 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://eh4k2esv6081"]
[resource]
albedo_color = Color(0, 0, 0, 1)
roughness = 0.06

5
Materials/Eye Pink.tres Normal file
View file

@ -0,0 +1,5 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://c64nx5pjielba"]
[resource]
albedo_color = Color(0.905882, 0.329412, 0.564706, 1)
roughness = 0.17

5
Materials/Eye White.tres Normal file
View file

@ -0,0 +1,5 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://cjmaxbq2g1fac"]
[resource]
albedo_color = Color(0.849464, 0.806876, 0.753358, 1)
roughness = 0.17

View file

@ -38,9 +38,17 @@ _subresources={
"use_external/enabled": true,
"use_external/path": "uid://b51m30fupimsx"
},
"Material.015": {
"use_external/enabled": true,
"use_external/path": "uid://c64nx5pjielba"
},
"Material.016": {
"use_external/enabled": true,
"use_external/path": "uid://cjmaxbq2g1fac"
},
"Material.017": {
"use_external/enabled": true,
"use_external/path": "uid://2a27fe7w8jef"
"use_external/path": "uid://eh4k2esv6081"
},
"hair yellow": {
"use_external/enabled": true,

View file

@ -21,6 +21,9 @@ ssil_intensity = 3.0
glow_enabled = true
fog_enabled = true
fog_light_color = Color(0, 0, 0, 1)
adjustment_enabled = true
adjustment_contrast = 1.1
adjustment_saturation = 1.3
[node name="Freddy\'s" type="Node3D"]
@ -63,7 +66,7 @@ omni_attenuation = 2.0
environment = SubResource("Environment_h0i1e")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.01889, 2.26498, -0.257163)
transform = Transform3D(0.999998, 0.00163928, -0.000874432, -0.00163943, 0.999999, -0.000166072, 0.000874161, 0.000167496, 1, 1.01889, 2.26498, -0.257163)
script = ExtResource("2_stiks")
toggle_key = 4194305
overlay_text = false

View file

@ -26,11 +26,12 @@ func _create_uuid():
func _update_visuals():
var holder = get_node("Margins").get_node("Holder")
for child in holder.get_children():
if child.name != "Title":
if child.name.contains("Node Row"):
child.queue_free()
for key in rows:
var nodeRow = load("res://Scenes/Nodes/Node Row.tscn").instantiate()
holder.add_child(nodeRow)
nodeRow.name = "Node Row"
(nodeRow.get_node("Label") as Label).text = str(key)
var input = nodeRow.get_node("Input") as GL_Node_Point
var output = nodeRow.get_node("Output") as GL_Node_Point
@ -68,7 +69,7 @@ func give_input_point_pos(name:String) -> Vector2:
return global_position
else:
for child in holder.get_children():
if child.name != "Title" && (child.get_node("Label") as Label).text == name:
if child.name.contains("Node Row") && (child.get_node("Label") as Label).text == name:
holder = child.get_node("Input") as GL_Node_Point
return holder.global_position + Vector2(holder.size.x/2,holder.size.y/2)
return Vector2.ZERO
@ -160,8 +161,7 @@ func destroy_connection(target:GL_Node,input_name:String):
rows[key]["connections"] = connections
var holder = get_node("Margins").get_node("Holder")
for child in holder.get_children():
if child.name == "Title":
continue
if child.name.contains("Node Row"):
(child.get_node("Input") as GL_Node_Point).update_lines()
(child.get_node("Output") as GL_Node_Point).update_lines()
return

View file

@ -23,4 +23,4 @@ import/blender/enabled=false
[rendering]
anti_aliasing/quality/use_taa=true
anti_aliasing/quality/msaa_3d=2