NoiseTexture2D

package
v0.0.0-...-f3deeb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package NoiseTexture2D provides methods for working with NoiseTexture2D object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsNoiseTexture2D() Instance
}

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 New

func New() Instance

func (Instance) AsNoiseTexture2D

func (self Instance) AsNoiseTexture2D() Instance

func (Instance) AsNormalMap

func (self Instance) AsNormalMap() bool

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsTexture

func (self Instance) AsTexture() Texture.Instance

func (Instance) AsTexture2D

func (self Instance) AsTexture2D() Texture2D.Instance

func (Instance) BumpStrength

func (self Instance) BumpStrength() Float.X

func (Instance) ColorRamp

func (self Instance) ColorRamp() [1]gdclass.Gradient

func (Instance) GenerateMipmaps

func (self Instance) GenerateMipmaps() bool

func (Instance) In3dSpace

func (self Instance) In3dSpace() bool

func (Instance) Invert

func (self Instance) Invert() bool

func (Instance) Noise

func (self Instance) Noise() [1]gdclass.Noise

func (Instance) Normalize

func (self Instance) Normalize() bool

func (Instance) Seamless

func (self Instance) Seamless() bool

func (Instance) SeamlessBlendSkirt

func (self Instance) SeamlessBlendSkirt() Float.X

func (Instance) SetAsNormalMap

func (self Instance) SetAsNormalMap(value bool)

func (Instance) SetBumpStrength

func (self Instance) SetBumpStrength(value Float.X)

func (Instance) SetColorRamp

func (self Instance) SetColorRamp(value [1]gdclass.Gradient)

func (Instance) SetGenerateMipmaps

func (self Instance) SetGenerateMipmaps(value bool)

func (Instance) SetHeight

func (self Instance) SetHeight(value int)

func (Instance) SetIn3dSpace

func (self Instance) SetIn3dSpace(value bool)

func (Instance) SetInvert

func (self Instance) SetInvert(value bool)

func (Instance) SetNoise

func (self Instance) SetNoise(value [1]gdclass.Noise)

func (Instance) SetNormalize

func (self Instance) SetNormalize(value bool)

func (Instance) SetSeamless

func (self Instance) SetSeamless(value bool)

func (Instance) SetSeamlessBlendSkirt

func (self Instance) SetSeamlessBlendSkirt(value Float.X)

func (Instance) SetWidth

func (self Instance) SetWidth(value int)

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL