102 lines
2.5 KiB
Plaintext
102 lines
2.5 KiB
Plaintext
[gd_resource type="ShaderMaterial" load_steps=9 format=2]
|
|
|
|
[sub_resource type="VisualShaderNodeVectorDecompose" id=7]
|
|
|
|
[sub_resource type="VisualShaderNodeScalarOp" id=2]
|
|
output_port_for_preview = 0
|
|
default_input_values = [ 0, 0.1, 1, 0.01 ]
|
|
operator = 9
|
|
|
|
[sub_resource type="VisualShaderNodeColorUniform" id=5]
|
|
uniform_name = "MenuBGColour"
|
|
default_value_enabled = true
|
|
default_value = Color( 0, 0, 0.517647, 1 )
|
|
|
|
[sub_resource type="VisualShaderNodeVectorScalarMix" id=6]
|
|
output_port_for_preview = 0
|
|
|
|
[sub_resource type="VisualShaderNodeInput" id=8]
|
|
input_name = "texture"
|
|
|
|
[sub_resource type="VisualShaderNodeInput" id=9]
|
|
input_name = "uv"
|
|
|
|
[sub_resource type="VisualShaderNodeTexture" id=10]
|
|
source = 5
|
|
|
|
[sub_resource type="VisualShader" id=3]
|
|
code = "shader_type canvas_item;
|
|
uniform vec4 MenuBGColour : hint_color = vec4(0.000000, 0.000000, 0.517647, 1.000000);
|
|
|
|
|
|
|
|
void vertex() {
|
|
// Output:0
|
|
|
|
}
|
|
|
|
void fragment() {
|
|
// Input:8
|
|
vec3 n_out8p0 = vec3(UV, 0.0);
|
|
|
|
// Input:7
|
|
|
|
// Texture:9
|
|
vec3 n_out9p0;
|
|
float n_out9p1;
|
|
{
|
|
vec4 TEXTURE_tex_read = texture(TEXTURE, n_out8p0.xy);
|
|
n_out9p0 = TEXTURE_tex_read.rgb;
|
|
n_out9p1 = TEXTURE_tex_read.a;
|
|
}
|
|
|
|
// ColorUniform:5
|
|
vec3 n_out5p0 = MenuBGColour.rgb;
|
|
float n_out5p1 = MenuBGColour.a;
|
|
|
|
// VectorDecompose:10
|
|
float n_out10p0 = n_out9p0.x;
|
|
float n_out10p1 = n_out9p0.y;
|
|
float n_out10p2 = n_out9p0.z;
|
|
|
|
// ScalarOp:3
|
|
float n_in3p1 = 0.01000;
|
|
float n_out3p0 = step(n_out10p0, n_in3p1);
|
|
|
|
// VectorScalarMix:6
|
|
vec3 n_out6p0 = mix(n_out9p0, n_out5p0, n_out3p0);
|
|
|
|
// Output:0
|
|
COLOR.rgb = n_out6p0;
|
|
COLOR.a = n_out9p1;
|
|
|
|
}
|
|
|
|
void light() {
|
|
// Output:0
|
|
|
|
}
|
|
"
|
|
graph_offset = Vector2( -751, -138 )
|
|
mode = 1
|
|
flags/light_only = false
|
|
nodes/fragment/3/node = SubResource( 2 )
|
|
nodes/fragment/3/position = Vector2( -80, -60 )
|
|
nodes/fragment/5/node = SubResource( 5 )
|
|
nodes/fragment/5/position = Vector2( -600, 240 )
|
|
nodes/fragment/6/node = SubResource( 6 )
|
|
nodes/fragment/6/position = Vector2( 120, 60 )
|
|
nodes/fragment/7/node = SubResource( 8 )
|
|
nodes/fragment/7/position = Vector2( -680, 120 )
|
|
nodes/fragment/8/node = SubResource( 9 )
|
|
nodes/fragment/8/position = Vector2( -680, 60 )
|
|
nodes/fragment/9/node = SubResource( 10 )
|
|
nodes/fragment/9/position = Vector2( -500, 60 )
|
|
nodes/fragment/10/node = SubResource( 7 )
|
|
nodes/fragment/10/position = Vector2( -380, -60 )
|
|
nodes/fragment/connections = PoolIntArray( 5, 0, 6, 1, 3, 0, 6, 2, 6, 0, 0, 0, 7, 0, 9, 2, 8, 0, 9, 0, 9, 1, 0, 1, 9, 0, 6, 0, 9, 0, 10, 0, 10, 0, 3, 0 )
|
|
|
|
[resource]
|
|
shader = SubResource( 3 )
|
|
shader_param/MenuBGColour = Color( 0, 0, 0.517647, 1 )
|