block_shader.tres 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_resource type="VisualShader" load_steps=4 format=3 uid="uid://dg12xjlfdakck"]
  2. [sub_resource type="VisualShaderNodeVec3Parameter" id="VisualShaderNodeVec3Parameter_u12qr"]
  3. parameter_name = "blkcolor"
  4. qualifier = 2
  5. default_value_enabled = true
  6. default_value = Vector3(0.1, 0.8, 0)
  7. [sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_okri3"]
  8. [sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_ue0ig"]
  9. constant = 0.9
  10. [resource]
  11. code = "shader_type spatial;
  12. render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
  13. instance uniform vec3 blkcolor = vec3(0.100000, 0.800000, 0.000000);
  14. void fragment() {
  15. // Vector3Parameter:2
  16. vec3 n_out2p0 = blkcolor;
  17. // FloatConstant:3
  18. float n_out3p0 = 0.000000;
  19. // FloatConstant:4
  20. float n_out4p0 = 0.900000;
  21. // Output:0
  22. ALBEDO = n_out2p0;
  23. METALLIC = n_out3p0;
  24. ROUGHNESS = n_out4p0;
  25. }
  26. "
  27. nodes/fragment/0/position = Vector2(460, 120)
  28. nodes/fragment/2/node = SubResource("VisualShaderNodeVec3Parameter_u12qr")
  29. nodes/fragment/2/position = Vector2(-60, 40)
  30. nodes/fragment/3/node = SubResource("VisualShaderNodeFloatConstant_okri3")
  31. nodes/fragment/3/position = Vector2(20, 260)
  32. nodes/fragment/4/node = SubResource("VisualShaderNodeFloatConstant_ue0ig")
  33. nodes/fragment/4/position = Vector2(20, 340)
  34. nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0, 3, 0, 0, 2, 4, 0, 0, 3)