Files
godot-docs-l10n/classes/es/class_noisetexture.rst
Rémi Verschelde cf78697eea Add localized class reference as pre-generated RST files
Currently including `zh_CN` and `es` which both have very high completion
ratios. Others will be added once they reach a significant percentage too.

These RST files will be used by godot-docs in place of its `classes` folder
after we sync with https://github.com/godotengine/godot-docs/pull/5458.

The update workflow is manual for now (example for `zh_CN`):

- Build `godotengine/godot` in the branch we currently track (now `3.x`)
- Run `godot --doctool -l zh_CN`
- Run `cd doc && make rst LANGARG=zh_CN`
- Copy `doc/_build/rst/*` to `classes/zh_CN/` here
- Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
2021-12-21 16:07:55 +01:00

168 lines
8.0 KiB
ReStructuredText

:github_url: hide
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the NoiseTexture.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_NoiseTexture:
NoiseTexture
============
**Inherits:** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
Textura rellenada :ref:`OpenSimplexNoise<class_OpenSimplexNoise>`.
Descripción
----------------------
Uses an :ref:`OpenSimplexNoise<class_OpenSimplexNoise>` to fill the texture data. You can specify the texture size but keep in mind that larger textures will take longer to generate and seamless noise only works with square sized textures.
NoiseTexture can also generate normalmap textures.
The class uses :ref:`Thread<class_Thread>`\ s to generate the texture data internally, so :ref:`Texture.get_data<class_Texture_method_get_data>` may return ``null`` if the generation process has not completed yet. In that case, you need to wait for the texture to be generated before accessing the data:
::
var texture = preload("res://noise.tres")
yield(texture, "changed")
var image = texture.get_data()
Propiedades
----------------------
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`as_normalmap<class_NoiseTexture_property_as_normalmap>` | ``false`` |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`bump_strength<class_NoiseTexture_property_bump_strength>` | ``8.0`` |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`int<class_int>` | flags | ``7`` (overrides :ref:`Texture<class_Texture_property_flags>`) |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`height<class_NoiseTexture_property_height>` | ``512`` |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`OpenSimplexNoise<class_OpenSimplexNoise>` | :ref:`noise<class_NoiseTexture_property_noise>` | |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`noise_offset<class_NoiseTexture_property_noise_offset>` | ``Vector2( 0, 0 )`` |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`seamless<class_NoiseTexture_property_seamless>` | ``false`` |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`width<class_NoiseTexture_property_width>` | ``512`` |
+-------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------+
Descripciones de Propiedades
--------------------------------------------------------
.. _class_NoiseTexture_property_as_normalmap:
- :ref:`bool<class_bool>` **as_normalmap**
+-----------+-------------------------+
| *Default* | ``false`` |
+-----------+-------------------------+
| *Setter* | set_as_normalmap(value) |
+-----------+-------------------------+
| *Getter* | is_normalmap() |
+-----------+-------------------------+
Si ``true``, la textura resultante contiene un mapa normal creado a partir del ruido original interpretado como un bump map.
----
.. _class_NoiseTexture_property_bump_strength:
- :ref:`float<class_float>` **bump_strength**
+-----------+--------------------------+
| *Default* | ``8.0`` |
+-----------+--------------------------+
| *Setter* | set_bump_strength(value) |
+-----------+--------------------------+
| *Getter* | get_bump_strength() |
+-----------+--------------------------+
La fuerza de los bump maps usados en esta textura. Un valor más alto hará que los bump maps parezcan más grandes mientras que un valor más bajo los hará parecer más suaves.
----
.. _class_NoiseTexture_property_height:
- :ref:`int<class_int>` **height**
+-----------+-------------------+
| *Default* | ``512`` |
+-----------+-------------------+
| *Setter* | set_height(value) |
+-----------+-------------------+
| *Getter* | get_height() |
+-----------+-------------------+
Altura de la textura generada.
----
.. _class_NoiseTexture_property_noise:
- :ref:`OpenSimplexNoise<class_OpenSimplexNoise>` **noise**
+----------+------------------+
| *Setter* | set_noise(value) |
+----------+------------------+
| *Getter* | get_noise() |
+----------+------------------+
La instancia :ref:`OpenSimplexNoise<class_OpenSimplexNoise>` utilizada para generar el ruido.
----
.. _class_NoiseTexture_property_noise_offset:
- :ref:`Vector2<class_Vector2>` **noise_offset**
+-----------+-------------------------+
| *Default* | ``Vector2( 0, 0 )`` |
+-----------+-------------------------+
| *Setter* | set_noise_offset(value) |
+-----------+-------------------------+
| *Getter* | get_noise_offset() |
+-----------+-------------------------+
An offset used to specify the noise space coordinate of the top left corner of the generated noise. This value is ignored if :ref:`seamless<class_NoiseTexture_property_seamless>` is enabled.
----
.. _class_NoiseTexture_property_seamless:
- :ref:`bool<class_bool>` **seamless**
+-----------+---------------------+
| *Default* | ``false`` |
+-----------+---------------------+
| *Setter* | set_seamless(value) |
+-----------+---------------------+
| *Getter* | get_seamless() |
+-----------+---------------------+
Whether the texture can be tiled without visible seams or not. Seamless textures take longer to generate.
\ **Note:** Seamless noise has a lower contrast compared to non-seamless noise. This is due to the way noise uses higher dimensions for generating seamless noise.
----
.. _class_NoiseTexture_property_width:
- :ref:`int<class_int>` **width**
+-----------+------------------+
| *Default* | ``512`` |
+-----------+------------------+
| *Setter* | set_width(value) |
+-----------+------------------+
| *Getter* | get_width() |
+-----------+------------------+
El ancho de la textura generada.
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`