-
Notifications
You must be signed in to change notification settings - Fork 0
/
World.tscn
131 lines (101 loc) · 4.68 KB
/
World.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[gd_scene load_steps=13 format=3 uid="uid://ct4nj2i38log5"]
[ext_resource type="Texture2D" uid="uid://dmg1upxq0lf6k" path="res://backgrounds/airport_1.png" id="1_55rm6"]
[ext_resource type="Script" path="res://Scripts/gen_training_data.gd" id="2_3gmy4"]
[sub_resource type="PlaneMesh" id="PlaneMesh_1ifvu"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_at7oi"]
shading_mode = 0
albedo_color = Color(0, 0, 0, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_syrqj"]
disable_ambient_light = true
albedo_color = Color(0, 0, 0, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_ugkvt"]
material = SubResource("StandardMaterial3D_syrqj")
[sub_resource type="Shader" id="Shader_rodag"]
code = "// NOTE: Shader automatically converted from Godot Engine 4.0.3.stable's StandardMaterial3D.
shader_type spatial;
render_mode blend_mix,depth_draw_opaque,cull_back,diffuse_burley,specular_schlick_ggx;
uniform vec4 albedo : source_color;
uniform sampler2D texture_albedo : source_color,filter_linear_mipmap,repeat_enable;
uniform float point_size : hint_range(0,128);
uniform float roughness : hint_range(0,1);
uniform sampler2D texture_metallic : hint_default_white,filter_linear_mipmap,repeat_enable;
uniform vec4 metallic_texture_channel;
uniform sampler2D texture_roughness : hint_roughness_r,filter_linear_mipmap,repeat_enable;
uniform float specular;
uniform float metallic;
uniform vec3 uv1_scale;
uniform vec3 uv1_offset;
uniform vec3 uv2_scale;
uniform vec3 uv2_offset;
void vertex() {
UV=UV*uv1_scale.xy+uv1_offset.xy;
}
void fragment() {
vec2 base_uv = UV;
vec4 albedo_tex = texture(texture_albedo,base_uv);
ALBEDO = albedo.rgb * albedo_tex.rgb;
float metallic_tex = dot(texture(texture_metallic,base_uv),metallic_texture_channel);
METALLIC = metallic_tex * metallic;
vec4 roughness_texture_channel = vec4(1.0,0.0,0.0,0.0);
float roughness_tex = dot(texture(texture_roughness,base_uv),roughness_texture_channel);
ROUGHNESS = roughness_tex * roughness;
SPECULAR = specular;
}
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u0240"]
render_priority = 0
shader = SubResource("Shader_rodag")
shader_parameter/albedo = Color(1, 1, 1, 1)
shader_parameter/point_size = 0.0
shader_parameter/roughness = 1.0
shader_parameter/metallic_texture_channel = null
shader_parameter/specular = 0.5
shader_parameter/metallic = 0.0
shader_parameter/uv1_scale = Vector3(1, 1, 1)
shader_parameter/uv1_offset = Vector3(0, 0, 0)
shader_parameter/uv2_scale = Vector3(1, 1, 1)
shader_parameter/uv2_offset = Vector3(0, 0, 0)
shader_parameter/texture_albedo = ExtResource("1_55rm6")
[sub_resource type="BoxMesh" id="BoxMesh_waln6"]
[sub_resource type="BoxMesh" id="BoxMesh_2b1te"]
[sub_resource type="Environment" id="Environment_0r861"]
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_hn3v6"]
[node name="Root" type="Node3D"]
[node name="black_bg" type="MeshInstance3D" parent="."]
transform = Transform3D(1000, 0, 0, 0, 1000, 0, 0, 0, 1000, 0, -1, 0)
visible = false
mesh = SubResource("PlaneMesh_1ifvu")
skeleton = NodePath("../Floor")
surface_material_override/0 = SubResource("StandardMaterial3D_at7oi")
[node name="Light" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.967661, -0.252255, -1.10264e-08, 0, -4.37114e-08, 1, -0.252255, -0.967661, -4.22978e-08, 0, 27.5242, 0)
light_energy = 0.0
[node name="Floor" type="MeshInstance3D" parent="."]
transform = Transform3D(139.98, 0, 53.9043, 0, 0.002, 0, -53.9043, 0, 139.98, 0, -0.1, -7.354)
mesh = SubResource("PlaneMesh_ugkvt")
surface_material_override/0 = SubResource("ShaderMaterial_u0240")
[node name="Viewport" type="SubViewport" parent="."]
size = Vector2i(640, 640)
render_target_clear_mode = 2
render_target_update_mode = 3
[node name="Camera" type="Camera3D" parent="Viewport"]
transform = Transform3D(-4.37114e-08, 1, 4.37114e-08, 0, -4.37114e-08, 1, 1, 4.37114e-08, 1.91069e-15, 0, 23, 0)
current = true
fov = 30.0
script = ExtResource("2_3gmy4")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Viewport/Camera"]
transform = Transform3D(0.1, 0, 4.9738e-14, 0, 0.1, 1.64224e-12, 5.55112e-17, 5.37764e-17, 100, 0, 0, 0)
visible = false
mesh = SubResource("BoxMesh_waln6")
[node name="ray" type="MeshInstance3D" parent="."]
transform = Transform3D(0.01, 0, 0, 0, 0.01, 0, 0, 0, 100, 0, 0, 0)
visible = false
mesh = SubResource("BoxMesh_2b1te")
skeleton = NodePath("../cube")
[node name="cube" type="MeshInstance3D" parent="."]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
visible = false
mesh = SubResource("BoxMesh_2b1te")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_0r861")
camera_attributes = SubResource("CameraAttributesPractical_hn3v6")