30 lines
714 B
Plaintext
30 lines
714 B
Plaintext
|
[gd_scene load_steps=4 format=2]
|
||
|
|
||
|
[ext_resource path="res://user_interface/utility_controls/profile_image_rect_mask.png" type="Texture" id=1]
|
||
|
|
||
|
[sub_resource type="Shader" id=1]
|
||
|
code = "shader_type canvas_item;
|
||
|
render_mode blend_mix;
|
||
|
|
||
|
uniform sampler2D mask;
|
||
|
|
||
|
void fragment() {
|
||
|
COLOR = texture(TEXTURE, UV) * vec4(vec3(1.0), texture(mask, UV).r);
|
||
|
}"
|
||
|
|
||
|
[sub_resource type="ShaderMaterial" id=2]
|
||
|
shader = SubResource( 1 )
|
||
|
shader_param/mask = ExtResource( 1 )
|
||
|
|
||
|
[node name="ProfileImageRect" type="TextureRect"]
|
||
|
material = SubResource( 2 )
|
||
|
margin_right = 40.0
|
||
|
margin_bottom = 40.0
|
||
|
rect_min_size = Vector2( 48, 48 )
|
||
|
texture = ExtResource( 1 )
|
||
|
expand = true
|
||
|
stretch_mode = 1
|
||
|
__meta__ = {
|
||
|
"_edit_use_anchors_": false
|
||
|
}
|