mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-27 06:07:14 +01:00
29 lines
1.7 KiB
XML
29 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="GradientTexture" inherits="Texture" version="4.4">
|
|
<brief_description>
|
|
Gradient-filled texture.
|
|
</brief_description>
|
|
<description>
|
|
GradientTexture uses a [Gradient] to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width]). See also [GradientTexture2D] and [CurveTexture].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
</methods>
|
|
<members>
|
|
<member name="flags" type="int" setter="set_flags" getter="get_flags" overrides="Texture" default="4" />
|
|
<member name="gradient" type="Gradient" setter="set_gradient" getter="get_gradient">
|
|
The [Gradient] that will be used to fill the texture.
|
|
</member>
|
|
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="false" />
|
|
<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 Environment3D.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>
|
|
</members>
|
|
<constants>
|
|
</constants>
|
|
</class>
|