From d139131aab7f228d5cca612b35289e6abd18e26a Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Fri, 11 Feb 2022 22:33:54 +1100 Subject: Adding Variable Rate Shading support to Godot Improve GI renderer and add VRS support Implement render device has_feature and move subgroup settings to limit_get --- doc/classes/ProjectSettings.xml | 6 ++++++ doc/classes/RenderingDevice.xml | 2 +- doc/classes/RenderingServer.xml | 28 ++++++++++++++++++++++++++++ doc/classes/Viewport.xml | 18 ++++++++++++++++++ doc/classes/XRInterfaceExtension.xml | 5 +++++ 5 files changed, 58 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 577abc159a..898d34b385 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -1968,6 +1968,12 @@ If [code]true[/code], the texture importer will import VRAM-compressed textures using the S3 Texture Compression algorithm. This algorithm is only supported on desktop platforms and consoles. [b]Note:[/b] Changing this setting does [i]not[/i] impact textures that were already imported before. To make this setting apply to textures that were already imported, exit the editor, remove the [code].godot/imported/[/code] folder located inside the project folder then restart the editor (see [member application/config/use_hidden_project_data_directory]). + + Set the default Variable Rate Shading (VRS) mode for the main viewport. See [member Viewport.vrs_mode] to change this at runtime, and [enum Viewport.VRSMode] for possible values. + + + If [member rendering/vrs/mode] is set to texture, this is the path to default texture loaded as the VRS image. + diff --git a/doc/classes/RenderingDevice.xml b/doc/classes/RenderingDevice.xml index 0d121a29d2..6248394b1a 100644 --- a/doc/classes/RenderingDevice.xml +++ b/doc/classes/RenderingDevice.xml @@ -395,7 +395,7 @@ - + diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 99f2191dee..6199c7b4e6 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -3357,6 +3357,22 @@ If [code]true[/code], the viewport uses augmented or virtual reality technologies. See [XRInterface]. + + + + + + Sets the Variable Rate Shading (VRS) mode for the viewport. Note, if hardware does not support VRS this property is ignored. + + + + + + + + Texture to use when the VRS mode is set to [constant RenderingServer.VIEWPORT_VRS_TEXTURE]. + + @@ -4116,6 +4132,18 @@ + + VRS is disabled. + + + VRS uses a texture. Note, for stereoscopic use a texture atlas with a texture for each view. + + + VRS texture is supplied by the primary [XRInterface]. + + + Represents the size of the [enum ViewportVRSMode] enum. + diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index c33e9aa020..53603b5356 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -286,6 +286,12 @@ If [code]true[/code], the viewport will use the primary XR interface to render XR output. When applicable this can result in a stereoscopic image and the resulting render being output to a headset. + + The Variable Rate Shading (VRS) mode that is used for this viewport. Note, if hardware does not support VRS this property is ignored. + + + Texture to use when [member vrs_mode] is set to [constant Viewport.VRS_TEXTURE]. + The custom [World2D] which can be used as 2D environment source. @@ -492,5 +498,17 @@ + + VRS is disabled. + + + VRS uses a texture. Note, for stereoscopic use a texture atlas with a texture for each view. + + + VRS texture is supplied by the primary [XRInterface]. + + + Represents the size of the [enum VRSMode] enum. + diff --git a/doc/classes/XRInterfaceExtension.xml b/doc/classes/XRInterfaceExtension.xml index 71f6a44724..1642ae61f7 100644 --- a/doc/classes/XRInterfaceExtension.xml +++ b/doc/classes/XRInterfaceExtension.xml @@ -106,6 +106,11 @@ Returns the number of views this interface requires, 1 for mono, 2 for stereoscopic. + + + + + -- cgit v1.2.3