Path: blob/master/modules/noise/doc_classes/NoiseTexture3D.xml
10279 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="NoiseTexture3D" inherits="Texture3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3A 3D texture filled with noise generated by a [Noise] object.4</brief_description>5<description>6Uses the [FastNoiseLite] library or other noise generators to fill the texture data of your desired size.7The class uses [Thread]s to generate the texture data internally, so [method Texture3D.get_data] may return [code]null[/code] if the generation process has not completed yet. In that case, you need to wait for the texture to be generated before accessing the image:8[codeblock]9var texture = NoiseTexture3D.new()10texture.noise = FastNoiseLite.new()11await texture.changed12var data = texture.get_data()13[/codeblock]14</description>15<tutorials>16</tutorials>17<members>18<member name="color_ramp" type="Gradient" setter="set_color_ramp" getter="get_color_ramp">19A [Gradient] which is used to map the luminance of each pixel to a color value.20</member>21<member name="depth" type="int" setter="set_depth" getter="get_depth" default="64">22Depth of the generated texture (in pixels).23</member>24<member name="height" type="int" setter="set_height" getter="get_height" default="64">25Height of the generated texture (in pixels).26</member>27<member name="invert" type="bool" setter="set_invert" getter="get_invert" default="false">28If [code]true[/code], inverts the noise texture. White becomes black, black becomes white.29</member>30<member name="noise" type="Noise" setter="set_noise" getter="get_noise">31The instance of the [Noise] object.32</member>33<member name="normalize" type="bool" setter="set_normalize" getter="is_normalized" default="true">34If [code]true[/code], the noise image coming from the noise generator is normalized to the range [code]0.0[/code] to [code]1.0[/code].35Turning normalization off can affect the contrast and allows you to generate non repeating tileable noise textures.36</member>37<member name="seamless" type="bool" setter="set_seamless" getter="get_seamless" default="false">38If [code]true[/code], a seamless texture is requested from the [Noise] resource.39[b]Note:[/b] Seamless noise textures may take longer to generate and/or can have a lower contrast compared to non-seamless noise depending on the used [Noise] resource. This is because some implementations use higher dimensions for generating seamless noise.40[b]Note:[/b] The default [FastNoiseLite] implementation uses the fallback path for seamless generation. If using a [member width], [member height] or [member depth] lower than the default, you may need to increase [member seamless_blend_skirt] to make seamless blending more effective.41</member>42<member name="seamless_blend_skirt" type="float" setter="set_seamless_blend_skirt" getter="get_seamless_blend_skirt" default="0.1">43Used for the default/fallback implementation of the seamless texture generation. It determines the distance over which the seams are blended. High values may result in less details and contrast. See [Noise] for further details.44[b]Note:[/b] If using a [member width], [member height] or [member depth] lower than the default, you may need to increase [member seamless_blend_skirt] to make seamless blending more effective.45</member>46<member name="width" type="int" setter="set_width" getter="get_width" default="64">47Width of the generated texture (in pixels).48</member>49</members>50</class>515253