mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
Handle multiple resolutions in most demos
This makes demos render correctly on hiDPI displays, while also demonstrating how to handle multiple resolutions. The 3D in 2D demo now uses "3D No-Effects" for the 3D viewport, which is faster to render. Thanks to this, 4× MSAA is now enabled for a better result. The background loading demo now uses mipmaps for better-looking images. The material testers demo now samples mouse input in a resolution-independent manner when panning. Default clear colors were also changed in some projects for visual consistency with the project's theme.
This commit is contained in:
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/flag_japan.png-e7284e6af3de26ab9c66cac9c4062038.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://flag_japan.png"
|
||||
source_md5="9c0bec8a1e496f92954558a42a00119d"
|
||||
|
||||
dest_files=[ "res://.import/flag_japan.png-e7284e6af3de26ab9c66cac9c4062038.stex" ]
|
||||
dest_md5="8d7183dc67f4e8ef7c8318ca56c0327a"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
@@ -26,6 +27,7 @@ flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
||||
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/flag_spain.png-fd2012b4e19487cfc4923df0c268553f.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://flag_spain.png"
|
||||
source_md5="ed47f2f75055c516f978a931a1c94bbd"
|
||||
|
||||
dest_files=[ "res://.import/flag_spain.png-fd2012b4e19487cfc4923df0c268553f.stex" ]
|
||||
dest_md5="4bb283a20c83c753f70bd351d3c83a6a"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
@@ -26,6 +27,7 @@ flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
||||
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://flag_uk.png"
|
||||
source_md5="e08b397a6aafd9113aa9c0600a53263b"
|
||||
|
||||
dest_files=[ "res://.import/flag_uk.png-eb8a2b26ac36f4d0cf0d7345e577ec2c.stex" ]
|
||||
dest_md5="e4b3148288d20d8c3041d0b3cd8c3562"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
@@ -26,6 +27,7 @@ flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
||||
@@ -7,10 +7,7 @@ path="res://.import/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample"
|
||||
[deps]
|
||||
|
||||
source_file="res://hello_en.wav"
|
||||
source_md5="8a03a08650119bbd66417681a4f5aa5a"
|
||||
|
||||
dest_files=[ "res://.import/hello_en.wav-27ed59f2d75c1ba813ab0abd069b6758.sample" ]
|
||||
dest_md5="55460bfdb1505a6c01d9f0ae69d71910"
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -7,10 +7,7 @@ path="res://.import/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample"
|
||||
[deps]
|
||||
|
||||
source_file="res://hello_es.wav"
|
||||
source_md5="4a0a73a1532d0c46f69e5336c550a431"
|
||||
|
||||
dest_files=[ "res://.import/hello_es.wav-64fe245556f8642a1881ae257bd123f2.sample" ]
|
||||
dest_md5="601fc37baf5cf3356c7282e583185bcc"
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -7,10 +7,7 @@ path="res://.import/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample"
|
||||
[deps]
|
||||
|
||||
source_file="res://hello_jp.wav"
|
||||
source_md5="60ed6a48deebb7a10da83adea9507693"
|
||||
|
||||
dest_files=[ "res://.import/hello_jp.wav-c31fbd7870b4b969789cb01f208809ac.sample" ]
|
||||
dest_md5="3652492771540e443708cc455818d261"
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
source_md5="53a00c1d20a2abda9a48e6c38c1f8558"
|
||||
|
||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
dest_md5="44f27e8bb4c333990f2b6c9a422454af"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
@@ -26,6 +27,7 @@ flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
||||
@@ -7,13 +7,20 @@
|
||||
[ext_resource path="res://hello_en.wav" type="AudioStream" id=5]
|
||||
|
||||
[node name="Panel" type="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.0
|
||||
margin_top = -300.0
|
||||
margin_right = 512.0
|
||||
margin_bottom = 300.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"__editor_plugin_screen__": "2D"
|
||||
"__editor_plugin_screen__": "2D",
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="english" type="Button" parent="."]
|
||||
@@ -94,7 +101,6 @@ texture = ExtResource( 4 )
|
||||
|
||||
[node name="audio" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 5 )
|
||||
|
||||
[connection signal="pressed" from="english" to="." method="_on_english_pressed"]
|
||||
[connection signal="pressed" from="spanish" to="." method="_on_spanish_pressed"]
|
||||
[connection signal="pressed" from="japanese" to="." method="_on_japanese_pressed"]
|
||||
|
||||
@@ -19,6 +19,11 @@ config/name="Translation Demo"
|
||||
run/main_scene="res://main.tscn"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
[display]
|
||||
|
||||
window/stretch/mode="2d"
|
||||
window/stretch/aspect="expand"
|
||||
|
||||
[gdnative]
|
||||
|
||||
singletons=[ ]
|
||||
@@ -34,3 +39,7 @@ translations=PoolStringArray( "res://text.en.translation", "res://text.es.transl
|
||||
[memory]
|
||||
|
||||
multithread/thread_rid_pool_prealloc=60
|
||||
|
||||
[rendering]
|
||||
|
||||
environment/default_clear_color=Color( 0.145098, 0.145098, 0.164706, 1 )
|
||||
|
||||
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/speaker.png-045bf6684b83b55b088824f14e175d16.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://speaker.png"
|
||||
source_md5="de26c4d8fbe4b16061ef1dcaedbb92fd"
|
||||
|
||||
dest_files=[ "res://.import/speaker.png-045bf6684b83b55b088824f14e175d16.stex" ]
|
||||
dest_md5="1fe95898c91866243e523bac00082b5e"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
@@ -26,6 +27,7 @@ flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user