NoiseTexture

OpenSimplexNoise filled texture.

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_generateTexture
Ref!Image _generateTexture()
_threadDone
void _threadDone(Image image)
_updateTexture
void _updateTexture()
getNoise
Ref!OpenSimplexNoise getNoise()
getSeamless
bool getSeamless()
isNormalmap
bool isNormalmap()
opAssign
NoiseTexture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(NoiseTexture other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setAsNormalmap
void setAsNormalmap(bool as_normalmap)
setHeight
void setHeight(long height)
setNoise
void setNoise(OpenSimplexNoise noise)
setSeamless
void setSeamless(bool seamless)
setWidth
void setWidth(long width)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

asNormalmap
bool asNormalmap [@property setter]

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

asNormalmap
bool asNormalmap [@property getter]

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

height
long height [@property getter]
long height [@property setter]

Height of the generated texture.

noise
OpenSimplexNoise noise [@property getter]
OpenSimplexNoise noise [@property setter]

The OpenSimplexNoise instance used to generate the noise.

seamless
bool seamless [@property getter]
bool seamless [@property setter]

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

width
long width [@property getter]
long width [@property setter]

Width of the generated texture.

Static functions

_new
NoiseTexture _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta