Update tutorials: VisualServer to RenderingServer

This commit is contained in:
Markus Sauermann
2022-02-05 02:18:06 +01:00
parent d44b58e224
commit 1e6a033a8f
10 changed files with 26 additions and 32 deletions

View File

@@ -403,15 +403,9 @@ Reducing aliasing on downsampling
If the game has a very high base resolution (e.g. 3840×2160), aliasing might
appear when downsampling to something considerably lower like 1280×720.
Aliasing can be made less visible by shrinking all images by a factor of 2
upon loading. This can be done by calling the method below before
the game data is loaded::
VisualServer.texture_set_shrink_all_x2_on_set_data(true)
Alternatively, you can also enable mipmaps on all your 2D textures. However,
enabling mipmaps will increase memory usage which may be problematic on low-end
mobile devices.
To resolve this, you can enable mipmaps on all your 2D textures. However, enabling mipmaps
will increase memory usage which may be problematic on low-end mobile devices.
Handling aspect ratios
----------------------

View File

@@ -156,7 +156,7 @@ it using (for example):
::
# Wait until the frame has finished before getting the texture.
yield(VisualServer, "frame_post_draw")
await RenderingServer.frame_post_draw
# You can get the image after this.
Viewport Container