remove uniform default values
This commit is contained in:
parent
ae89c2b46a
commit
a27e1898e7
|
@ -1,11 +1,8 @@
|
||||||
[gd_scene load_steps=16 format=2]
|
[gd_scene load_steps=14 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/Piece.gd" type="Script" id=1]
|
[ext_resource path="res://src/Piece.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://assets/escher_lizards.jpg" type="Texture" id=2]
|
[ext_resource path="res://assets/escher_lizards.jpg" type="Texture" id=2]
|
||||||
|
|
||||||
[sub_resource type="VisualShaderNodeVec3Constant" id=1]
|
|
||||||
constant = Vector3( 0.3, 0.3, 0 )
|
|
||||||
|
|
||||||
[sub_resource type="VisualShaderNodeExpression" id=12]
|
[sub_resource type="VisualShaderNodeExpression" id=12]
|
||||||
output_port_for_preview = 0
|
output_port_for_preview = 0
|
||||||
size = Vector2( 657, 584 )
|
size = Vector2( 657, 584 )
|
||||||
|
@ -51,9 +48,6 @@ uniform_name = "scale"
|
||||||
[sub_resource type="VisualShaderNodeVec3Uniform" id=7]
|
[sub_resource type="VisualShaderNodeVec3Uniform" id=7]
|
||||||
uniform_name = "offset"
|
uniform_name = "offset"
|
||||||
|
|
||||||
[sub_resource type="VisualShaderNodeVec3Constant" id=8]
|
|
||||||
constant = Vector3( 0.25, 0.25, 1 )
|
|
||||||
|
|
||||||
[sub_resource type="VisualShader" id=9]
|
[sub_resource type="VisualShader" id=9]
|
||||||
code = "shader_type canvas_item;
|
code = "shader_type canvas_item;
|
||||||
uniform vec3 scale;
|
uniform vec3 scale;
|
||||||
|
@ -135,28 +129,24 @@ void light() {
|
||||||
|
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
graph_offset = Vector2( -380.872, -106.674 )
|
graph_offset = Vector2( -268.615, -149.836 )
|
||||||
mode = 1
|
mode = 1
|
||||||
flags/light_only = false
|
flags/light_only = false
|
||||||
nodes/fragment/0/position = Vector2( 1540, 360 )
|
nodes/fragment/0/position = Vector2( 1400, 300 )
|
||||||
nodes/fragment/3/node = SubResource( 2 )
|
nodes/fragment/3/node = SubResource( 2 )
|
||||||
nodes/fragment/3/position = Vector2( 740, 20 )
|
nodes/fragment/3/position = Vector2( 740, 20 )
|
||||||
nodes/fragment/4/node = SubResource( 3 )
|
nodes/fragment/4/node = SubResource( 3 )
|
||||||
nodes/fragment/4/position = Vector2( -120, 360 )
|
nodes/fragment/4/position = Vector2( 0, 260 )
|
||||||
nodes/fragment/5/node = SubResource( 4 )
|
nodes/fragment/5/node = SubResource( 4 )
|
||||||
nodes/fragment/5/position = Vector2( 280, -20 )
|
nodes/fragment/5/position = Vector2( 280, -20 )
|
||||||
nodes/fragment/6/node = SubResource( 5 )
|
nodes/fragment/6/node = SubResource( 5 )
|
||||||
nodes/fragment/6/position = Vector2( 540, 140 )
|
nodes/fragment/6/position = Vector2( 540, 140 )
|
||||||
nodes/fragment/7/node = SubResource( 6 )
|
nodes/fragment/7/node = SubResource( 6 )
|
||||||
nodes/fragment/7/position = Vector2( 0, -40 )
|
nodes/fragment/7/position = Vector2( -20, 60 )
|
||||||
nodes/fragment/8/node = SubResource( 7 )
|
nodes/fragment/8/node = SubResource( 7 )
|
||||||
nodes/fragment/8/position = Vector2( 300, 240 )
|
nodes/fragment/8/position = Vector2( 300, 240 )
|
||||||
nodes/fragment/9/node = SubResource( 8 )
|
|
||||||
nodes/fragment/9/position = Vector2( -160, 20 )
|
|
||||||
nodes/fragment/11/node = SubResource( 1 )
|
|
||||||
nodes/fragment/11/position = Vector2( 140, 300 )
|
|
||||||
nodes/fragment/13/node = SubResource( 12 )
|
nodes/fragment/13/node = SubResource( 12 )
|
||||||
nodes/fragment/13/position = Vector2( 440, 440 )
|
nodes/fragment/13/position = Vector2( 340, 400 )
|
||||||
nodes/fragment/13/size = Vector2( 657, 584 )
|
nodes/fragment/13/size = Vector2( 657, 584 )
|
||||||
nodes/fragment/13/input_ports = "0,1,input;"
|
nodes/fragment/13/input_ports = "0,1,input;"
|
||||||
nodes/fragment/13/output_ports = "0,2,alpha_mask;1,2,is_thickness;"
|
nodes/fragment/13/output_ports = "0,2,alpha_mask;1,2,is_thickness;"
|
||||||
|
@ -176,13 +166,13 @@ is_thickness = rel_p.y > 0.0 && dist_thick > (0.5 - box_size);"
|
||||||
nodes/fragment/15/node = SubResource( 13 )
|
nodes/fragment/15/node = SubResource( 13 )
|
||||||
nodes/fragment/15/position = Vector2( 780, -100 )
|
nodes/fragment/15/position = Vector2( 780, -100 )
|
||||||
nodes/fragment/17/node = SubResource( 14 )
|
nodes/fragment/17/node = SubResource( 14 )
|
||||||
nodes/fragment/17/position = Vector2( 1080, 80 )
|
nodes/fragment/17/position = Vector2( 1080, 20 )
|
||||||
nodes/fragment/connections = PoolIntArray( 5, 0, 6, 0, 6, 0, 3, 0, 13, 0, 0, 1, 4, 0, 5, 0, 4, 0, 13, 0, 13, 1, 17, 0, 15, 0, 17, 1, 3, 0, 17, 2, 17, 0, 0, 0, 7, 0, 5, 1, 8, 0, 6, 1 )
|
nodes/fragment/connections = PoolIntArray( 5, 0, 6, 0, 6, 0, 3, 0, 13, 0, 0, 1, 4, 0, 5, 0, 4, 0, 13, 0, 13, 1, 17, 0, 15, 0, 17, 1, 3, 0, 17, 2, 17, 0, 0, 0, 8, 0, 6, 1, 7, 0, 5, 1 )
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id=10]
|
[sub_resource type="ShaderMaterial" id=10]
|
||||||
shader = SubResource( 9 )
|
shader = SubResource( 9 )
|
||||||
shader_param/scale = Vector3( 0.25, 0.25, 1 )
|
shader_param/scale = Vector3( 0.25, 0.25, 1 )
|
||||||
shader_param/offset = Vector3( 0, 0, 0 )
|
shader_param/offset = Vector3( 0.3, 0.3, 0 )
|
||||||
|
|
||||||
[node name="Piece" type="Node2D"]
|
[node name="Piece" type="Node2D"]
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|
Loading…
Reference in a new issue