godot-demo-projects/3d/material_testers/material_tester.tscn

421 lines
14 KiB
Plaintext

[gd_scene load_steps=50 format=2]
[ext_resource path="res://tester.gd" type="Script" id=1]
[ext_resource path="res://default_env.tres" type="Environment" id=2]
[ext_resource path="res://models/test_bed/test_bed.tscn" type="PackedScene" id=3]
[ext_resource path="res://models/godot_ball.mesh" type="ArrayMesh" id=4]
[ext_resource path="res://test_materials/texture_wood.png" type="Texture" id=5]
[ext_resource path="res://test_materials/texture_cheese_albedo.png" type="Texture" id=6]
[ext_resource path="res://test_materials/texture_cheese_ao.png" type="Texture" id=7]
[ext_resource path="res://test_materials/texture_cheese_depth.png" type="Texture" id=8]
[ext_resource path="res://test_materials/texture_cheese_normal.png" type="Texture" id=9]
[ext_resource path="res://test_materials/texture_rock_albedo.png" type="Texture" id=10]
[ext_resource path="res://test_materials/texture_rock_ao.png" type="Texture" id=11]
[ext_resource path="res://test_materials/texture_rock_depth.png" type="Texture" id=12]
[ext_resource path="res://test_materials/texture_rock_metal.png" type="Texture" id=13]
[ext_resource path="res://test_materials/texture_rock_normal.png" type="Texture" id=14]
[ext_resource path="res://test_materials/texture_bricks.jpg" type="Texture" id=15]
[ext_resource path="res://test_materials/texture_bricks_depth.jpg" type="Texture" id=16]
[ext_resource path="res://test_materials/texture_bricks_metal.jpg" type="Texture" id=17]
[ext_resource path="res://test_materials/texture_bricks_normal.jpg" type="Texture" id=18]
[ext_resource path="res://test_materials/wool_albedo.png" type="Texture" id=19]
[ext_resource path="res://test_materials/wool_depth.png" type="Texture" id=20]
[ext_resource path="res://test_materials/wool_normal.png" type="Texture" id=21]
[ext_resource path="res://test_materials/aluminium_albedo.png" type="Texture" id=22]
[ext_resource path="res://test_materials/aluminium_normal.png" type="Texture" id=23]
[ext_resource path="res://test_materials/marble_albedo.png" type="Texture" id=24]
[ext_resource path="res://test_materials/sand_albedo.jpg" type="Texture" id=25]
[ext_resource path="res://test_materials/sand_metal.jpg" type="Texture" id=26]
[ext_resource path="res://test_materials/sand_normal.jpg" type="Texture" id=27]
[ext_resource path="res://test_materials/sand_rough.jpg" type="Texture" id=28]
[ext_resource path="res://test_materials/rock_albedo.jpg" type="Texture" id=29]
[ext_resource path="res://test_materials/rock_ao.jpg" type="Texture" id=30]
[ext_resource path="res://test_materials/rock_metal.jpg" type="Texture" id=31]
[ext_resource path="res://test_materials/rock_rough.jpg" type="Texture" id=32]
[sub_resource type="SpatialMaterial" id=1]
metallic = 0.4
roughness = 0.35
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0.895294, 0.900549, 0.890078, 1 )
metallic = 0.1
roughness = 0.52
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0.551806, 0.709299, 0.980989, 1 )
metallic = 0.31
roughness = 0.42
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0.471216, 0.481647, 0.465961, 1 )
metallic = 0.1
roughness = 0.0
[sub_resource type="SpatialMaterial" id=5]
metallic = 1.0
roughness = 0.02
[sub_resource type="SpatialMaterial" id=6]
albedo_color = Color( 0.806275, 0.575882, 0.361255, 1 )
albedo_texture = ExtResource( 5 )
metallic = 0.48
roughness = 0.28
[sub_resource type="SpatialMaterial" id=7]
albedo_texture = ExtResource( 6 )
roughness = 0.64
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 9 )
ao_enabled = true
ao_light_affect = 0.0
ao_texture = ExtResource( 7 )
ao_on_uv2 = false
ao_texture_channel = 0
depth_enabled = true
depth_scale = 0.13
depth_deep_parallax = true
depth_min_layers = 8
depth_max_layers = 32
depth_flip_tangent = false
depth_flip_binormal = false
depth_texture = ExtResource( 8 )
subsurf_scatter_enabled = true
subsurf_scatter_strength = 0.37
[sub_resource type="SpatialMaterial" id=8]
albedo_texture = ExtResource( 10 )
metallic = 0.86
metallic_texture = ExtResource( 13 )
roughness = 0.47
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 14 )
ao_enabled = true
ao_light_affect = 0.0
ao_texture = ExtResource( 11 )
ao_on_uv2 = false
ao_texture_channel = 0
depth_enabled = true
depth_scale = 0.18
depth_deep_parallax = true
depth_min_layers = 8
depth_max_layers = 32
depth_flip_tangent = false
depth_flip_binormal = false
depth_texture = ExtResource( 12 )
[sub_resource type="SpatialMaterial" id=9]
albedo_texture = ExtResource( 15 )
metallic = 1.0
metallic_texture = ExtResource( 17 )
roughness = 0.56
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 18 )
depth_enabled = true
depth_scale = 0.03
depth_deep_parallax = true
depth_min_layers = 8
depth_max_layers = 32
depth_flip_tangent = false
depth_flip_binormal = false
depth_texture = ExtResource( 16 )
[sub_resource type="SpatialMaterial" id=10]
albedo_texture = ExtResource( 19 )
metallic = 0.1
roughness = 0.77
normal_enabled = true
normal_scale = 0.3
normal_texture = ExtResource( 21 )
depth_enabled = true
depth_scale = 0.01
depth_deep_parallax = true
depth_min_layers = 8
depth_max_layers = 32
depth_flip_tangent = false
depth_flip_binormal = false
depth_texture = ExtResource( 20 )
[sub_resource type="SpatialMaterial" id=11]
albedo_texture = ExtResource( 22 )
metallic = 0.59
roughness = 0.4
normal_enabled = true
normal_scale = 0.21
normal_texture = ExtResource( 23 )
anisotropy_enabled = true
anisotropy = -0.99
[sub_resource type="SpatialMaterial" id=12]
params_diffuse_mode = 2
albedo_texture = ExtResource( 24 )
metallic = 0.1
roughness = 0.1
rim_enabled = true
rim = 1.0
rim_tint = 1.0
subsurf_scatter_enabled = true
subsurf_scatter_strength = 0.1
[sub_resource type="SpatialMaterial" id=13]
albedo_texture = ExtResource( 25 )
metallic = 1.0
metallic_texture = ExtResource( 26 )
roughness_texture = ExtResource( 28 )
normal_enabled = true
normal_scale = 0.43
normal_texture = ExtResource( 27 )
[sub_resource type="SpatialMaterial" id=14]
albedo_texture = ExtResource( 29 )
metallic = 0.12
roughness_texture = ExtResource( 32 )
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 31 )
ao_enabled = true
ao_light_affect = 0.0
ao_texture = ExtResource( 30 )
ao_on_uv2 = false
ao_texture_channel = 0
[sub_resource type="SpatialMaterial" id=15]
params_depth_draw_mode = 2
albedo_color = Color( 1, 1, 1, 0 )
albedo_texture = ExtResource( 29 )
metallic = 1.0
roughness = 0.62
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 31 )
ao_enabled = true
ao_light_affect = 0.0
ao_texture = ExtResource( 30 )
ao_on_uv2 = false
ao_texture_channel = 0
refraction_enabled = true
refraction_scale = 0.04
refraction_texture_channel = 0
[sub_resource type="SpatialMaterial" id=16]
flags_unshaded = true
params_cull_mode = 1
params_grow = true
params_grow_amount = 0.03
albedo_color = Color( 0.0261569, 0, 0, 1 )
[sub_resource type="SpatialMaterial" id=17]
next_pass = SubResource( 16 )
params_diffuse_mode = 4
params_specular_mode = 3
albedo_color = Color( 0.905765, 0.356039, 0.0994902, 1 )
roughness = 0.04
[node name="MaterialTester" type="Spatial"]
script = ExtResource( 1 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource( 2 )
[node name="Testers" type="Spatial" parent="."]
[node name="White Plastic" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -36, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/White Plastic"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 1 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Mirror" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -30, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Mirror"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 5 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Dark Wood" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -24, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Dark Wood"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 6 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Cheese" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -18, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Cheese"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 7 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Stones" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -12, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Stones"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 8 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Brick" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Brick"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 9 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Wool" parent="Testers" instance=ExtResource( 3 )]
[node name="GodotBall" type="MeshInstance" parent="Testers/Wool"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 10 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Aluminium" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Aluminium"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 11 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Marble" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Marble"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 12 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Wet Sand" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 18, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Wet Sand"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 13 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Rock" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 24, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Rock"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 14 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Ice" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Ice"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 15 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="Toon" parent="Testers" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 36, 0, 0 )
[node name="GodotBall" type="MeshInstance" parent="Testers/Toon"]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.5, -4 )
mesh = ExtResource( 4 )
material/0 = SubResource( 17 )
material/1 = SubResource( 2 )
material/2 = SubResource( 3 )
material/3 = SubResource( 4 )
[node name="CameraHolder" type="Spatial" parent="."]
transform = Transform( 0.877582, 0, -0.479427, 0, 1, 0, 0.479427, 0, 0.877582, -36, 2.8, -4 )
[node name="RotationX" type="Spatial" parent="CameraHolder"]
transform = Transform( 1, 0, 0, 0, 0.877582, 0.479427, 0, -0.479427, 0.877582, 0, 0, 0 )
[node name="Camera" type="Camera" parent="CameraHolder/RotationX"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 5 )
fov = 65.0
near = 0.1
[node name="UI" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
[node name="Background" type="OptionButton" parent="UI"]
margin_left = 15.0
margin_top = 6.0
margin_right = 109.0
margin_bottom = 26.0
[node name="Previous" type="Button" parent="UI"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 30.0
margin_top = -50.0
margin_right = 97.0
margin_bottom = -30.0
text = "Previous"
[node name="Next" type="Button" parent="UI"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -72.0
margin_top = -50.0
margin_right = -30.0
margin_bottom = -30.0
text = "Next"
[node name="MaterialName" type="Label" parent="UI"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_top = -44.0
margin_bottom = -30.0
size_flags_vertical = 0
align = 1
[connection signal="item_selected" from="UI/Background" to="." method="_on_bg_item_selected"]
[connection signal="pressed" from="UI/Previous" to="." method="_on_Previous_pressed"]
[connection signal="pressed" from="UI/Next" to="." method="_on_Next_pressed"]