mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
Merge pull request #489 from aaronfranke/3dplat
Tweak the 3D platformer demo
This commit is contained in:
12
3d/platformer/default_env.tres
Normal file
12
3d/platformer/default_env.tres
Normal file
@@ -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
|
||||
@@ -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
3d/platformer/stage/floor_mesh.tres
Normal file
25
3d/platformer/stage/floor_mesh.tres
Normal file
@@ -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 one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user