12345678910111213141516171819202122 |
- [gd_resource type="ShaderMaterial" load_steps=3 format=2]
- [ext_resource path="res://tiles/tilemap2summer.png" type="Texture" id=1]
- [sub_resource type="Shader" id=1]
- code = "shader_type canvas_item;
- render_mode blend_mix;
- uniform sampler2D text1;
- uniform sampler2D text2;
- uniform float mixer = 0.5;
- void fragment(){
- vec4 color = texture(text1,UV);
- vec4 color1 = texture(text2,UV);
- COLOR = mix(color,color1,mixer);
- }"
- [resource]
- shader = SubResource( 1 )
- shader_param/mixer = 0.0
- shader_param/text1 = ExtResource( 1 )
|