From 25100ee3dc648acbf8b3afad17a60fd25450ef21 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 17 Feb 2026 01:00:56 +0100 Subject: [PATCH] Document wireframe debug draw mode behaving differently in Compatibility --- doc/classes/RenderingServer.xml | 3 ++- doc/classes/Viewport.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 6133a8ec16..8fd16a3dbf 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -3559,7 +3559,7 @@ If [param generate] is [code]true[/code], generates debug wireframes for all meshes that are loaded when using the Compatibility renderer. By default, the engine does not generate debug wireframes at runtime, since they slow down loading of assets and take up VRAM. - [b]Note:[/b] You must call this method before loading any meshes when using the Compatibility renderer, otherwise wireframes will not be used. + [b]Note:[/b] You must call this method before loading any meshes when using the Compatibility renderer. Otherwise, wireframes will not be used. @@ -5447,6 +5447,7 @@ Debug draw draws objects in wireframe. [b]Note:[/b] [method set_debug_generate_wireframes] must be called before loading any meshes for wireframes to be visible when using the Compatibility renderer. + [b]Note:[/b] In the Compatibility renderer, backfaces are always visible when using wireframe rendering. In the Forward+ and Mobile renderers, wireframes follow the material's backface culling properties instead. Normal buffer is drawn instead of regular scene so you can see the per-pixel normals that will be used by post-processing effects. diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index e244951537..b2c1836480 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -662,6 +662,7 @@ Objects are displayed as wireframe models. [b]Note:[/b] [method RenderingServer.set_debug_generate_wireframes] must be called before loading any meshes for wireframes to be visible when using the Compatibility renderer. + [b]Note:[/b] In the Compatibility renderer, backfaces are always visible when using wireframe rendering. In the Forward+ and Mobile renderers, wireframes follow the material's backface culling properties instead. Objects are displayed without lighting information and their textures replaced by normal mapping.