瀏覽代碼

Merge pull request #444 from aaronfranke/truck-town-tres

Convert materials to tres format in Truck Town
Aaron Franke 5 年之前
父節點
當前提交
f3c8885d8f
共有 30 個文件被更改,包括 100 次插入17 次删除
  1. 二進制
      3d/truck_town/Materials/car_blue_body.material
  2. 6 0
      3d/truck_town/Materials/car_blue_body.tres
  3. 二進制
      3d/truck_town/Materials/car_grill.material
  4. 5 0
      3d/truck_town/Materials/car_grill.tres
  5. 二進制
      3d/truck_town/Materials/car_orange_body.material
  6. 5 0
      3d/truck_town/Materials/car_orange_body.tres
  7. 二進制
      3d/truck_town/Materials/car_red_body.material
  8. 5 0
      3d/truck_town/Materials/car_red_body.tres
  9. 二進制
      3d/truck_town/Materials/car_window.material
  10. 7 0
      3d/truck_town/Materials/car_window.tres
  11. 二進制
      3d/truck_town/Materials/car_yellow_body.material
  12. 7 0
      3d/truck_town/Materials/car_yellow_body.tres
  13. 二進制
      3d/truck_town/Materials/cement.material
  14. 9 0
      3d/truck_town/Materials/cement.tres
  15. 二進制
      3d/truck_town/Materials/door.material
  16. 6 0
      3d/truck_town/Materials/door.tres
  17. 二進制
      3d/truck_town/Materials/grass.material
  18. 9 0
      3d/truck_town/Materials/grass.tres
  19. 二進制
      3d/truck_town/Materials/house.material
  20. 6 0
      3d/truck_town/Materials/house.tres
  21. 二進制
      3d/truck_town/Materials/roof.material
  22. 6 0
      3d/truck_town/Materials/roof.tres
  23. 二進制
      3d/truck_town/Materials/roof2.material
  24. 6 0
      3d/truck_town/Materials/roof2.tres
  25. 二進制
      3d/truck_town/Materials/windows.material
  26. 6 0
      3d/truck_town/Materials/windows.tres
  27. 3 3
      3d/truck_town/car_base.tscn
  28. 4 4
      3d/truck_town/tow_truck.tscn
  29. 7 7
      3d/truck_town/town_mesh.tscn
  30. 3 3
      3d/truck_town/trailer_truck.tscn

二進制
3d/truck_town/Materials/car_blue_body.material


+ 6 - 0
3d/truck_town/Materials/car_blue_body.tres

@@ -0,0 +1,6 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+albedo_color = Color( 0.0387451, 0, 0.256549, 1 )
+metallic = 0.2
+roughness = 0.6

二進制
3d/truck_town/Materials/car_grill.material


+ 5 - 0
3d/truck_town/Materials/car_grill.tres

@@ -0,0 +1,5 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+albedo_color = Color( 0.248353, 0.248353, 0.248353, 1 )
+roughness = 0.0

二進制
3d/truck_town/Materials/car_orange_body.material


+ 5 - 0
3d/truck_town/Materials/car_orange_body.tres

@@ -0,0 +1,5 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+albedo_color = Color( 0.742188, 0.33499, 0.156555, 1 )
+roughness = 0.0

二進制
3d/truck_town/Materials/car_red_body.material


+ 5 - 0
3d/truck_town/Materials/car_red_body.tres

@@ -0,0 +1,5 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+albedo_color = Color( 0.256575, 0.0334902, 0, 1 )
+roughness = 0.6

二進制
3d/truck_town/Materials/car_window.material


+ 7 - 0
3d/truck_town/Materials/car_window.tres

@@ -0,0 +1,7 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+albedo_color = Color( 0.64, 0.64, 0.64, 1 )
+metallic = 0.3
+metallic_specular = 0.6
+roughness = 0.0

二進制
3d/truck_town/Materials/car_yellow_body.material


+ 7 - 0
3d/truck_town/Materials/car_yellow_body.tres

@@ -0,0 +1,7 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+resource_name = "Material.001"
+albedo_color = Color( 0.256549, 0.225529, 0, 1 )
+metallic = 0.1
+roughness = 0.6

二進制
3d/truck_town/Materials/cement.material


+ 9 - 0
3d/truck_town/Materials/cement.tres

@@ -0,0 +1,9 @@
+[gd_resource type="SpatialMaterial" load_steps=2 format=2]
+
+[ext_resource path="res://Images/cement.png" type="Texture" id=1]
+
+[resource]
+resource_name = "Cement"
+albedo_texture = ExtResource( 1 )
+roughness = 0.8
+uv1_scale = Vector3( 2, 2, 2 )

二進制
3d/truck_town/Materials/door.material


+ 6 - 0
3d/truck_town/Materials/door.tres

@@ -0,0 +1,6 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+resource_name = "vertexColorShader"
+albedo_color = Color( 0.559608, 0.476667, 0.127098, 1 )
+roughness = 0.5

二進制
3d/truck_town/Materials/grass.material


+ 9 - 0
3d/truck_town/Materials/grass.tres

@@ -0,0 +1,9 @@
+[gd_resource type="SpatialMaterial" load_steps=2 format=2]
+
+[ext_resource path="res://Images/grass.png" type="Texture" id=1]
+
+[resource]
+resource_name = "Grass"
+albedo_texture = ExtResource( 1 )
+roughness = 0.8
+uv1_scale = Vector3( 2, 2, 2 )

二進制
3d/truck_town/Materials/house.material


+ 6 - 0
3d/truck_town/Materials/house.tres

@@ -0,0 +1,6 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+resource_name = "Material.001"
+albedo_color = Color( 0.905529, 0.87102, 0.614314, 1 )
+roughness = 0.0

二進制
3d/truck_town/Materials/roof.material


+ 6 - 0
3d/truck_town/Materials/roof.tres

@@ -0,0 +1,6 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+resource_name = "Material"
+albedo_color = Color( 0.17622, 0.025098, 0.0206667, 1 )
+roughness = 0.0

二進制
3d/truck_town/Materials/roof2.material


+ 6 - 0
3d/truck_town/Materials/roof2.tres

@@ -0,0 +1,6 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+resource_name = "vertexColorBIBase"
+albedo_color = Color( 0.332031, 0.0233459, 0.0233459, 1 )
+roughness = 0.6

二進制
3d/truck_town/Materials/windows.material


+ 6 - 0
3d/truck_town/Materials/windows.tres

@@ -0,0 +1,6 @@
+[gd_resource type="SpatialMaterial" format=2]
+
+[resource]
+resource_name = "Material.002"
+albedo_color = Color( 0.0563922, 0.0104314, 0.00341176, 1 )
+roughness = 0.0

+ 3 - 3
3d/truck_town/car_base.tscn

@@ -1,9 +1,9 @@
 [gd_scene load_steps=13 format=2]
 
 [ext_resource path="res://vehicle.gd" type="Script" id=1]
-[ext_resource path="res://Materials/car_red_body.material" type="Material" id=2]
-[ext_resource path="res://Materials/car_window.material" type="Material" id=3]
-[ext_resource path="res://Materials/car_grill.material" type="Material" id=4]
+[ext_resource path="res://Materials/car_red_body.tres" type="Material" id=2]
+[ext_resource path="res://Materials/car_window.tres" type="Material" id=3]
+[ext_resource path="res://Materials/car_grill.tres" type="Material" id=4]
 [ext_resource path="res://follow_camera.gd" type="Script" id=5]
 
 [sub_resource type="PhysicsMaterial" id=1]

+ 4 - 4
3d/truck_town/tow_truck.tscn

@@ -1,11 +1,11 @@
 [gd_scene load_steps=24 format=2]
 
 [ext_resource path="res://vehicle.gd" type="Script" id=1]
-[ext_resource path="res://Materials/car_yellow_body.material" type="Material" id=2]
-[ext_resource path="res://Materials/car_window.material" type="Material" id=3]
-[ext_resource path="res://Materials/car_grill.material" type="Material" id=4]
+[ext_resource path="res://Materials/car_yellow_body.tres" type="Material" id=2]
+[ext_resource path="res://Materials/car_window.tres" type="Material" id=3]
+[ext_resource path="res://Materials/car_grill.tres" type="Material" id=4]
 [ext_resource path="res://follow_camera.gd" type="Script" id=5]
-[ext_resource path="res://Materials/car_red_body.material" type="Material" id=6]
+[ext_resource path="res://Materials/car_red_body.tres" type="Material" id=6]
 
 [sub_resource type="ArrayMesh" id=1]
 resource_name = "bus.003"

+ 7 - 7
3d/truck_town/town_mesh.tscn

@@ -1,12 +1,12 @@
 [gd_scene load_steps=52 format=2]
 
-[ext_resource path="res://Materials/roof.material" type="Material" id=1]
-[ext_resource path="res://Materials/roof2.material" type="Material" id=2]
-[ext_resource path="res://Materials/cement.material" type="Material" id=3]
-[ext_resource path="res://Materials/grass.material" type="Material" id=4]
-[ext_resource path="res://Materials/house.material" type="Material" id=5]
-[ext_resource path="res://Materials/windows.material" type="Material" id=6]
-[ext_resource path="res://Materials/door.material" type="Material" id=7]
+[ext_resource path="res://Materials/roof.tres" type="Material" id=1]
+[ext_resource path="res://Materials/roof2.tres" type="Material" id=2]
+[ext_resource path="res://Materials/cement.tres" type="Material" id=3]
+[ext_resource path="res://Materials/grass.tres" type="Material" id=4]
+[ext_resource path="res://Materials/house.tres" type="Material" id=5]
+[ext_resource path="res://Materials/windows.tres" type="Material" id=6]
+[ext_resource path="res://Materials/door.tres" type="Material" id=7]
 
 [sub_resource type="ArrayMesh" id=1]
 resource_name = "Cube.003"

+ 3 - 3
3d/truck_town/trailer_truck.tscn

@@ -1,8 +1,8 @@
 [gd_scene load_steps=20 format=2]
 
-[ext_resource path="res://Materials/car_blue_body.material" type="Material" id=1]
-[ext_resource path="res://Materials/car_grill.material" type="Material" id=2]
-[ext_resource path="res://Materials/car_orange_body.material" type="Material" id=3]
+[ext_resource path="res://Materials/car_blue_body.tres" type="Material" id=1]
+[ext_resource path="res://Materials/car_grill.tres" type="Material" id=2]
+[ext_resource path="res://Materials/car_orange_body.tres" type="Material" id=3]
 [ext_resource path="res://vehicle.gd" type="Script" id=4]
 [ext_resource path="res://follow_camera.gd" type="Script" id=5]