From c9fce7e4aa01a69f7812e6013e58c0b02e7aa349 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 31 Jan 2023 09:28:48 +0100 Subject: [PATCH] Add GBuffer textures to the C# scripting --- Source/Engine/Graphics/RenderBuffers.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/Engine/Graphics/RenderBuffers.h b/Source/Engine/Graphics/RenderBuffers.h index 86a621afc..23db15523 100644 --- a/Source/Engine/Graphics/RenderBuffers.h +++ b/Source/Engine/Graphics/RenderBuffers.h @@ -45,10 +45,14 @@ public: { struct { - GPUTexture* GBuffer0; - GPUTexture* GBuffer1; - GPUTexture* GBuffer2; - GPUTexture* GBuffer3; + /// Gets the GBuffer texture 0. RGB: Color, A: AO + API_FIELD(ReadOnly) GPUTexture* GBuffer0; + /// Gets the GBuffer texture 1. RGB: Normal, A: ShadingModel + API_FIELD(ReadOnly) GPUTexture* GBuffer1; + /// Gets the GBuffer texture 2. R: Roughness, G: Metalness, B:Specular + API_FIELD(ReadOnly) GPUTexture* GBuffer2; + /// Gets the GBuffer texture 3. RGBA: Custom Data + API_FIELD(ReadOnly) GPUTexture* GBuffer3; }; GPUTexture* GBuffer[4];