123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- [gd_resource type="VisualShader" load_steps=4 format=3 uid="uid://dg12xjlfdakck"]
- [sub_resource type="VisualShaderNodeVec3Parameter" id="VisualShaderNodeVec3Parameter_u12qr"]
- parameter_name = "blkcolor"
- qualifier = 2
- default_value_enabled = true
- default_value = Vector3(0.1, 0.8, 0)
- [sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_okri3"]
- [sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_ue0ig"]
- constant = 0.9
- [resource]
- code = "shader_type spatial;
- render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
- instance uniform vec3 blkcolor = vec3(0.100000, 0.800000, 0.000000);
- void fragment() {
- // Vector3Parameter:2
- vec3 n_out2p0 = blkcolor;
- // FloatConstant:3
- float n_out3p0 = 0.000000;
- // FloatConstant:4
- float n_out4p0 = 0.900000;
- // Output:0
- ALBEDO = n_out2p0;
- METALLIC = n_out3p0;
- ROUGHNESS = n_out4p0;
- }
- "
- nodes/fragment/0/position = Vector2(460, 120)
- nodes/fragment/2/node = SubResource("VisualShaderNodeVec3Parameter_u12qr")
- nodes/fragment/2/position = Vector2(-60, 40)
- nodes/fragment/3/node = SubResource("VisualShaderNodeFloatConstant_okri3")
- nodes/fragment/3/position = Vector2(20, 260)
- nodes/fragment/4/node = SubResource("VisualShaderNodeFloatConstant_ue0ig")
- nodes/fragment/4/position = Vector2(20, 340)
- nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0, 3, 0, 0, 2, 4, 0, 0, 3)
|