-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLava.tscn
50 lines (38 loc) · 1.04 KB
/
Lava.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Lava.gd" type="Script" id=1]
[sub_resource type="Shader" id=3]
code = "shader_type canvas_item;
void fragment () {
vec4 tex = texture(TEXTURE, UV + TIME/4.0);
tex.x = ((sin(TIME) + 1.0)/ 2.0) * tex.x;
COLOR = tex;
}
"
[sub_resource type="ShaderMaterial" id=4]
shader = SubResource( 3 )
[sub_resource type="OpenSimplexNoise" id=5]
[sub_resource type="NoiseTexture" id=6]
width = 64
height = 64
noise = SubResource( 5 )
[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 32, 32 )
[node name="Lava" type="Node2D"]
position = Vector2( 448, 216 )
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 0.843137, 0.0627451, 0.0627451, 1 )
material = SubResource( 4 )
texture = SubResource( 6 )
__meta__ = {
"_edit_lock_": true
}
[node name="Area2D" type="Area2D" parent="."]
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 7 )
__meta__ = {
"_edit_lock_": true
}