NoiseTexture

Inherits: Texture < Resource < Reference < Object

OpenSimplexNoise filled texture.

Description

Uses an 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 Threads to generate the texture data internally, so Texture.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()

Property Descriptions

Defaultfalse
Setterset_as_normalmap(value)
Getteris_normalmap()

If true, the resulting texture contains a normal map created from the original noise interpreted as a bump map.


Default8.0
Setterset_bump_strength(value)
Getterget_bump_strength()

Strength of the bump maps used in this texture. A higher value will make the bump maps appear larger while a lower value will make them appear softer.


Default512
Setterset_height(value)
Getterget_height()

Height of the generated texture.


Setterset_noise(value)
Getterget_noise()

The OpenSimplexNoise instance used to generate the noise.


Defaultfalse
Setterset_seamless(value)
Getterget_seamless()

Whether the texture can be tiled without visible seams or not. Seamless textures take longer to generate.


Default512
Setterset_width(value)
Getterget_width()

Width of the generated texture.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.