material-maker/material_maker/tools/environment_manager/environment_manager.tscn

54 lines
1.6 KiB
Plaintext
Raw Normal View History

2021-02-13 21:26:18 +01:00
[gd_scene load_steps=6 format=2]
[ext_resource path="res://material_maker/tools/environment_manager/environment_manager.gd" type="Script" id=1]
[sub_resource type="PanoramaSky" id=1]
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
[sub_resource type="SphereMesh" id=3]
radius = 2.0
height = 4.0
[sub_resource type="SpatialMaterial" id=4]
metallic = 1.0
roughness = 0.2
[node name="EnvironmentManager" type="Node"]
script = ExtResource( 1 )
[node name="PreviewGenerator" type="Viewport" parent="."]
size = Vector2( 64, 64 )
own_world = true
handle_input_locally = false
render_target_v_flip = true
render_target_update_mode = 0
[node name="CameraPosition" type="Spatial" parent="PreviewGenerator"]
[node name="CameraRotation1" type="Spatial" parent="PreviewGenerator/CameraPosition"]
[node name="CameraRotation2" type="Spatial" parent="PreviewGenerator/CameraPosition/CameraRotation1"]
[node name="Camera" type="Camera" parent="PreviewGenerator/CameraPosition/CameraRotation1/CameraRotation2"]
transform = Transform( 1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, 0, 2, 4 )
environment = SubResource( 2 )
current = true
[node name="Sun" type="DirectionalLight" parent="PreviewGenerator"]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0 )
[node name="Sphere" type="MeshInstance" parent="PreviewGenerator"]
mesh = SubResource( 3 )
material/0 = SubResource( 4 )
[node name="HTTPRequest" type="HTTPRequest" parent="."]
[node name="Timer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true
2021-02-13 21:26:18 +01:00
[connection signal="timeout" from="Timer" to="." method="do_update_thumbnail"]