-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExampleScene.tscn
59 lines (44 loc) · 1.82 KB
/
ExampleScene.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
51
52
53
54
55
56
57
58
59
[gd_scene load_steps=10 format=2]
[ext_resource path="res://PGBuffer-FirstPass.shader" type="Shader" id=1]
[ext_resource path="res://PGBuffer-FullScreenPass.shader" type="Shader" id=2]
[ext_resource path="res://Previewer.tscn" type="PackedScene" id=3]
[sub_resource type="ViewportTexture" id=1]
viewport_path = NodePath("ViewportContainer/Viewport")
[sub_resource type="ShaderMaterial" id=2]
resource_local_to_scene = true
shader = ExtResource( 2 )
shader_param/pgBuffer = SubResource( 1 )
[sub_resource type="SphereMesh" id=3]
[sub_resource type="ShaderMaterial" id=4]
shader = ExtResource( 1 )
shader_param/whateverElseYouWantToPass = 1.0
[sub_resource type="PlaneMesh" id=5]
[sub_resource type="ShaderMaterial" id=6]
shader = ExtResource( 1 )
shader_param/whateverElseYouWantToPass = 0.0
[node name="ExampleScene" type="Spatial"]
[node name="ViewportContainer" type="ViewportContainer" parent="."]
material = SubResource( 2 )
anchor_right = 1.0
anchor_bottom = 1.0
stretch = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Viewport" type="Viewport" parent="ViewportContainer"]
size = Vector2( 1024, 600 )
handle_input_locally = false
hdr = false
render_target_update_mode = 3
[node name="Camera" type="Camera" parent="ViewportContainer/Viewport"]
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.866025, 0.25, 0.433013, -0.5, 0.433013, 0.75, 0, -0.866025, 0.5, 0, 0, 0 )
[node name="Sphere" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3 )
mesh = SubResource( 3 )
material/0 = SubResource( 4 )
[node name="Wall" type="MeshInstance" parent="."]
transform = Transform( 100, 0, 0, 0, -4.37114e-06, -100, 0, 100, -4.37114e-06, 0, 0, -34 )
mesh = SubResource( 5 )
material/0 = SubResource( 6 )
[node name="Previewer" parent="." instance=ExtResource( 3 )]