diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index 13d84d96d6f..dcc817427b2 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -497,10 +497,16 @@ Represents the size of the [enum RenderInfo] enum. + Visible render pass (excluding shadows). + Shadow render pass. Objects will be rendered several times depending on the number of amounts of lights with shadows and the number of directional shadow splits. - + + Canvas item rendering. This includes all 2D rendering. + + + Represents the size of the [enum RenderInfoType] enum. Objects are displayed normally. diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index c8d2d71c2af..92aa0901b6c 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -4843,6 +4843,7 @@ void Viewport::_bind_methods() { BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_VISIBLE); BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_SHADOW); + BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_CANVAS); BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_MAX); BIND_ENUM_CONSTANT(DEBUG_DRAW_DISABLED); diff --git a/scene/main/viewport.h b/scene/main/viewport.h index 29ccdc5426b..21832a454c4 100644 --- a/scene/main/viewport.h +++ b/scene/main/viewport.h @@ -138,6 +138,7 @@ public: enum RenderInfoType { RENDER_INFO_TYPE_VISIBLE, RENDER_INFO_TYPE_SHADOW, + RENDER_INFO_TYPE_CANVAS, RENDER_INFO_TYPE_MAX };