Documentation
¶
Overview ¶
Package NoiseTexture2D provides methods for working with NoiseTexture2D object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsNoiseTexture2D() Instance
- func (self Instance) AsNormalMap() bool
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsTexture() Texture.Instance
- func (self Instance) AsTexture2D() Texture2D.Instance
- func (self Instance) BumpStrength() Float.X
- func (self Instance) ColorRamp() [1]gdclass.Gradient
- func (self Instance) GenerateMipmaps() bool
- func (self Instance) In3dSpace() bool
- func (self Instance) Invert() bool
- func (self Instance) Noise() [1]gdclass.Noise
- func (self Instance) Normalize() bool
- func (self Instance) Seamless() bool
- func (self Instance) SeamlessBlendSkirt() Float.X
- func (self Instance) SetAsNormalMap(value bool)
- func (self Instance) SetBumpStrength(value Float.X)
- func (self Instance) SetColorRamp(value [1]gdclass.Gradient)
- func (self Instance) SetGenerateMipmaps(value bool)
- func (self Instance) SetHeight(value int)
- func (self Instance) SetIn3dSpace(value bool)
- func (self Instance) SetInvert(value bool)
- func (self Instance) SetNoise(value [1]gdclass.Noise)
- func (self Instance) SetNormalize(value bool)
- func (self Instance) SetSeamless(value bool)
- func (self Instance) SetSeamlessBlendSkirt(value Float.X)
- func (self Instance) SetWidth(value int)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.NoiseTexture2D
Uses the [FastNoiseLite] library or other noise generators to fill the texture data of your desired size. [NoiseTexture2D] can also generate normal map textures. The class uses [Thread]s to generate the texture data internally, so [method Texture2D.get_image] 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 and the generated byte data: [codeblock] var texture = NoiseTexture2D.new() texture.noise = FastNoiseLite.new() await texture.changed var image = texture.get_image() var data = image.get_data() [/codeblock]
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsNoiseTexture2D ¶
func (Instance) AsNormalMap ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted