Browse Source

Merge pull request #489 from aaronfranke/3dplat

Tweak the 3D platformer demo
Aaron Franke 5 years ago
parent
commit
866f826124

+ 12 - 0
3d/platformer/default_env.tres

@@ -0,0 +1,12 @@
+[gd_resource type="Environment" load_steps=3 format=2]
+
+[ext_resource path="res://stage/panorama.png" type="Texture" id=1]
+
+[sub_resource type="PanoramaSky" id=1]
+radiance_size = 1
+panorama = ExtResource( 1 )
+
+[resource]
+background_mode = 2
+background_sky = SubResource( 1 )
+tonemap_mode = 2

+ 1 - 0
3d/platformer/project.godot

@@ -143,3 +143,4 @@ multithread/thread_rid_pool_prealloc=60
 
 quality/intended_usage/framebuffer_allocation=3
 quality/filters/msaa=2
+environment/default_environment="res://default_env.tres"

+ 25 - 0
3d/platformer/stage/floor_mesh.tres

@@ -0,0 +1,25 @@
+[gd_resource type="ArrayMesh" load_steps=4 format=2]
+
+[ext_resource path="res://stage/texturemr.png" type="Texture" id=1]
+[ext_resource path="res://stage/texture.png" type="Texture" id=2]
+
+[sub_resource type="SpatialMaterial" id=1]
+albedo_texture = ExtResource( 2 )
+metallic = 0.51
+metallic_texture = ExtResource( 1 )
+roughness = 0.2
+roughness_texture = ExtResource( 1 )
+
+[resource]
+surfaces/0 = {
+"aabb": AABB( -1, -1, -1, 2, 0, 2 ),
+"array_data": PoolByteArray( 0, 188, 0, 188, 0, 60, 0, 60, 0, 127, 0, 0, 7, 58, 236, 51, 0, 60, 0, 188, 0, 60, 0, 60, 0, 127, 0, 0, 0, 60, 236, 51, 0, 60, 0, 188, 0, 188, 0, 60, 0, 127, 0, 0, 0, 60, 239, 17, 0, 188, 0, 188, 0, 188, 0, 60, 0, 127, 0, 0, 7, 58, 239, 17 ),
+"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0 ),
+"blend_shape_data": [  ],
+"format": 98067,
+"index_count": 6,
+"material": SubResource( 1 ),
+"primitive": 4,
+"skeleton_aabb": [  ],
+"vertex_count": 4
+}

File diff suppressed because it is too large
+ 11 - 27
3d/platformer/stage/stage.tscn


File diff suppressed because it is too large
+ 2 - 15
3d/platformer/stage/tiles.tres


+ 2 - 3
3d/platformer/stage/tiles.tscn

@@ -2,7 +2,6 @@
 
 [ext_resource path="res://stage/texture.png" type="Texture" id=1]
 
-
 [sub_resource type="SpatialMaterial" id=1]
 params_diffuse_mode = 1
 roughness = 0.0
@@ -385,12 +384,12 @@ material/0 = SubResource( 3 )
 
 [node name="FloorCornerCol" type="StaticBody" parent="FloorCorner"]
 
-[node name="flooredge" type="MeshInstance" parent="."]
+[node name="FloorEdge" type="MeshInstance" parent="."]
 transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 1, 0 )
 mesh = SubResource( 17 )
 material/0 = SubResource( 3 )
 
-[node name="FloorEdgeCol" type="StaticBody" parent="flooredge"]
+[node name="FloorEdgeCol" type="StaticBody" parent="FloorEdge"]
 
 [node name="Floor" type="MeshInstance" parent="."]
 transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7, 1, 0 )

Some files were not shown because too many files changed in this diff