Files
godot-docs/classes/class_noisetexture.rst
2018-09-15 03:14:50 +02:00

114 lines
3.9 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.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>`
**Category:** Core
Brief Description
-----------------
:ref:`SimplexNoise<class_SimplexNoise>` filled texture.
Properties
----------
+-----------------------------------------+------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`as_normalmap<class_NoiseTexture_as_normalmap>` |
+-----------------------------------------+------------------------------------------------------+
| :ref:`SimplexNoise<class_SimplexNoise>` | :ref:`noise<class_NoiseTexture_noise>` |
+-----------------------------------------+------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`seamless<class_NoiseTexture_seamless>` |
+-----------------------------------------+------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`size<class_NoiseTexture_size>` |
+-----------------------------------------+------------------------------------------------------+
Methods
-------
+-------+-------------------------------------------------------------------------------------------+
| void | :ref:`set_height<class_NoiseTexture_set_height>` **(** :ref:`int<class_int>` height **)** |
+-------+-------------------------------------------------------------------------------------------+
| void | :ref:`set_width<class_NoiseTexture_set_width>` **(** :ref:`int<class_int>` width **)** |
+-------+-------------------------------------------------------------------------------------------+
Description
-----------
Uses a :ref:`SimplexNoise<class_SimplexNoise>` 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.
Property Descriptions
---------------------
.. _class_NoiseTexture_as_normalmap:
- :ref:`bool<class_bool>` **as_normalmap**
+----------+-------------------------+
| *Setter* | set_as_normalmap(value) |
+----------+-------------------------+
| *Getter* | is_normalmap() |
+----------+-------------------------+
If true, the resulting texture contains a normal map created from the original noise interpreted as a bump map.
.. _class_NoiseTexture_noise:
- :ref:`SimplexNoise<class_SimplexNoise>` **noise**
+----------+------------------+
| *Setter* | set_noise(value) |
+----------+------------------+
| *Getter* | get_noise() |
+----------+------------------+
The :ref:`SimplexNoise<class_SimplexNoise>` instance used to generate the noise.
.. _class_NoiseTexture_seamless:
- :ref:`bool<class_bool>` **seamless**
+----------+---------------------+
| *Setter* | set_seamless(value) |
+----------+---------------------+
| *Getter* | get_seamless() |
+----------+---------------------+
Whether the texture can be tiled without visible seams or not. Seamless textures take longer to generate.
.. _class_NoiseTexture_size:
- :ref:`Vector2<class_Vector2>` **size**
+----------+-----------------+
| *Setter* | set_size(value) |
+----------+-----------------+
| *Getter* | get_size() |
+----------+-----------------+
Size of the generated texture.
Method Descriptions
-------------------
.. _class_NoiseTexture_set_height:
- void **set_height** **(** :ref:`int<class_int>` height **)**
Set texture height.
.. _class_NoiseTexture_set_width:
- void **set_width** **(** :ref:`int<class_int>` width **)**
Set texture width.