From 6b260122846b373941019bcb2e7b7c492fc34e44 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 11 Dec 2021 16:56:44 +0100 Subject: [PATCH] Document Viewports rendering upside-down by default This was fixed in `master`, but the default behavior can't be changed in `3.x` for compatibility reasons. --- doc/classes/Viewport.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index d83bc43c57e..69b03e51cbf 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -10,6 +10,7 @@ Viewports can also choose to be audio listeners, so they generate positional audio depending on a 2D or 3D camera child of it. Also, viewports can be assigned to different screens in case the devices have multiple screens. Finally, viewports can also behave as render targets, in which case they will not be visible unless the associated texture is used to draw. + [b]Note:[/b] By default, a newly created Viewport in Godot 3.x will appear to be upside down. Enabling [member render_target_v_flip] will display the Viewport with the correct orientation. $DOCS_URL/tutorials/2d/2d_transforms.html @@ -250,7 +251,7 @@ The update mode when viewport used as a render target. - If [code]true[/code], the result of rendering will be flipped vertically. + If [code]true[/code], the result of rendering will be flipped vertically. Since Viewports in Godot 3.x render upside-down, it's recommended to set this to [code]true[/code] in most situations. The subdivision amount of the first quadrant on the shadow atlas.