[gd_resource type="VisualShader" load_steps=9 format=3 uid="uid://5is85o5k05lb"] [ext_resource type="Texture2D" uid="uid://b3htar5wp3ag2" path="res://Boats/cartoon-boat/textures/boat_4_lambert1_BaseColor.png" id="1_igkxg"] [ext_resource type="Texture2D" uid="uid://conebiij3gpe8" path="res://Boats/cartoon-boat/textures/boat_4_lambert1_Metalness.png" id="2_c0qec"] [ext_resource type="Texture2D" uid="uid://cqu3udiqdiw5u" path="res://Boats/cartoon-boat/textures/boat_4_lambert1_Normal.png" id="3_ygw4n"] [ext_resource type="Texture2D" uid="uid://brltubuleyx6p" path="res://Boats/cartoon-boat/textures/boat_4_lambert1_Roughness.png" id="4_yj6bl"] [sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_v2np7"] texture = ExtResource("1_igkxg") [sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_y2thm"] texture = ExtResource("2_c0qec") [sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_2d07w"] texture = ExtResource("3_ygw4n") [sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_fban5"] texture = ExtResource("4_yj6bl") [resource] code = "shader_type spatial; render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_toon, specular_toon; uniform sampler2D tex_frg_2; uniform sampler2D tex_frg_5; uniform sampler2D tex_frg_4; void fragment() { // Texture2D:2 vec4 n_out2p0 = texture(tex_frg_2, UV); // Texture2D:5 vec4 n_out5p0 = texture(tex_frg_5, UV); // Texture2D:4 vec4 n_out4p0 = texture(tex_frg_4, UV); // Output:0 ALBEDO = vec3(n_out2p0.xyz); ROUGHNESS = n_out5p0.x; NORMAL = vec3(n_out4p0.xyz); } " modes/diffuse = 3 modes/specular = 1 nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_v2np7") nodes/fragment/2/position = Vector2(40, 20) nodes/fragment/3/node = SubResource("VisualShaderNodeTexture_y2thm") nodes/fragment/3/position = Vector2(-40, 360) nodes/fragment/4/node = SubResource("VisualShaderNodeTexture_2d07w") nodes/fragment/4/position = Vector2(-40, 680) nodes/fragment/5/node = SubResource("VisualShaderNodeTexture_fban5") nodes/fragment/5/position = Vector2(-400, 440) nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0, 5, 0, 0, 3, 4, 0, 0, 8)