mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
Remove old and unused project settings, update various demos for 4.2 (#1024)
- Move all demo projects that don't require Forward+/Mobile-only features to the Compatibility rendering method. This improves performance significantly on low-end devices and ensures visuals are identical to a web export of the demo. - Set deadzone on all inputs to 0.2 for better gamepad usability. - Remove reliance on `default_env.tres` to use built-in Environment resources in the main scene instead (which follows the preview environment workflow). - Remove notices pointing to GDNative or VisualScript, since both were removed in 4.0. - Various bug fixes and usability tweaks to 10+ demos.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://csyb8ij530w1l"]
|
||||
|
||||
[ext_resource type="Environment" uid="uid://cpe7fpfvhiapa" path="res://default_env.tres" id="1"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="1"]
|
||||
diffuse_mode = 1
|
||||
albedo_color = Color(0.149414, 0.796875, 0.569252, 1)
|
||||
@@ -9,6 +7,10 @@ roughness = 0.0
|
||||
|
||||
[sub_resource type="BoxMesh" id="2"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_wokxq"]
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(0.305882, 0.360784, 0.537255, 1)
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
@@ -25,4 +27,4 @@ fov = 60.0
|
||||
near = 0.1
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = ExtResource("1")
|
||||
environment = SubResource("Environment_wokxq")
|
||||
|
||||
@@ -28,8 +28,8 @@ two_fingers_zoom = false
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="HBoxContainer/SubViewportContainer"]
|
||||
own_world_3d = true
|
||||
transparent_bg = true
|
||||
handle_input_locally = false
|
||||
msaa_3d = 2
|
||||
size = Vector2i(574, 322)
|
||||
render_target_update_mode = 4
|
||||
|
||||
@@ -54,8 +54,8 @@ two_fingers_zoom = false
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="HBoxContainer/ViewportContainer2"]
|
||||
own_world_3d = true
|
||||
transparent_bg = true
|
||||
handle_input_locally = false
|
||||
msaa_3d = 2
|
||||
size = Vector2i(574, 322)
|
||||
render_target_update_mode = 4
|
||||
|
||||
@@ -84,8 +84,8 @@ two_fingers_zoom = false
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="HBoxContainer2/SubViewportContainer"]
|
||||
own_world_3d = true
|
||||
transparent_bg = true
|
||||
handle_input_locally = false
|
||||
msaa_3d = 2
|
||||
size = Vector2i(574, 322)
|
||||
render_target_update_mode = 4
|
||||
|
||||
@@ -108,8 +108,8 @@ target = NodePath("SubViewport/Node3D/MeshInstance3D")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="HBoxContainer2/ViewportContainer2"]
|
||||
own_world_3d = true
|
||||
transparent_bg = true
|
||||
handle_input_locally = false
|
||||
msaa_3d = 2
|
||||
size = Vector2i(574, 322)
|
||||
render_target_update_mode = 4
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Demo of multitouch input and different gestures using the touch API. This demo i
|
||||
|
||||
Language: GDScript
|
||||
|
||||
Renderer: GLES 2
|
||||
Renderer: Compatibility
|
||||
|
||||
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/141
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
[gd_resource type="Environment" format=3 uid="uid://cpe7fpfvhiapa"]
|
||||
|
||||
[resource]
|
||||
ambient_light_color = Color(0.307434, 0.362682, 0.539063, 1)
|
||||
@@ -17,12 +17,18 @@ run/main_scene="res://Main.tscn"
|
||||
config/features=PackedStringArray("4.2")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[display]
|
||||
|
||||
window/stretch/mode="canvas_items"
|
||||
window/stretch/aspect="expand"
|
||||
|
||||
[input_devices]
|
||||
|
||||
pointing/emulate_touch_from_mouse=true
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
textures/vram_compression/import_etc2_astc=true
|
||||
environment/defaults/default_clear_color=Color(0.113725, 0.133333, 0.196078, 1)
|
||||
environment/defaults/default_environment="res://default_env.tres"
|
||||
|
||||
Reference in New Issue
Block a user