summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-08-25 08:03:34 +0200
committerGitHub <noreply@github.com>2021-08-25 08:03:34 +0200
commitbb0122c9331e7cb56d358ab427329a267b387969 (patch)
treedc584c6b27060287478dce5f919b9d8e90d025e7 /doc/classes
parent3db8359324a968007c7d0f24023831440a6d16e8 (diff)
parent1d257d02db5946a5a3c38f48e93176a8a86b20ec (diff)
Merge pull request #48374 from Calinou/gradienttexture-add-hdr-property
Add an `use_hdr` property to GradientTexture to allow storing HDR colors
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/GradientTexture.xml3
1 files changed, 3 insertions, 0 deletions
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 @@
<member name="gradient" type="Gradient" setter="set_gradient" getter="get_gradient">
The [Gradient] that will be used to fill the texture.
</member>
+ <member name="use_hdr" type="bool" setter="set_use_hdr" getter="is_using_hdr" default="false">
+ 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).
+ </member>
<member name="width" type="int" setter="set_width" getter="get_width" default="2048">
The number of color samples that will be obtained from the [Gradient].
</member>