From 1d257d02db5946a5a3c38f48e93176a8a86b20ec Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 2 May 2021 03:53:10 +0200 Subject: Add an `use_hdr` property to GradientTexture to allow storing HDR colors This is disabled by default to save some memory and preserve the existing behavior of clamping colors. --- doc/classes/GradientTexture.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/GradientTexture.xml b/doc/classes/GradientTexture.xml index 242a78b2e4..44da042dd4 100644 --- a/doc/classes/GradientTexture.xml +++ b/doc/classes/GradientTexture.xml @@ -14,6 +14,9 @@ The [Gradient] that will be used to fill the texture. + + If [code]true[/code], the generated texture will support high dynamic range ([constant Image.FORMAT_RGBAF] format). This allows for glow effects to work if [member Environment.glow_enabled] is [code]true[/code]. If [code]false[/code], the generated texture will use low dynamic range; overbright colors will be clamped ([constant Image.FORMAT_RGBA8] format). + The number of color samples that will be obtained from the [Gradient]. -- cgit v1.2.3