basicimage.tres 524 B

12345678910111213141516171819202122
  1. [gd_resource type="ShaderMaterial" load_steps=3 format=2]
  2. [ext_resource path="res://tiles/tilemap2summer.png" type="Texture" id=1]
  3. [sub_resource type="Shader" id=1]
  4. code = "shader_type canvas_item;
  5. render_mode blend_mix;
  6. uniform sampler2D text1;
  7. uniform sampler2D text2;
  8. uniform float mixer = 0.5;
  9. void fragment(){
  10. vec4 color = texture(text1,UV);
  11. vec4 color1 = texture(text2,UV);
  12. COLOR = mix(color,color1,mixer);
  13. }"
  14. [resource]
  15. shader = SubResource( 1 )
  16. shader_param/mixer = 0.0
  17. shader_param/text1 = ExtResource( 1 )