noise

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fire

type Fire struct {
	Size mgl32.Vec2
	Heat float32
}

func NewFire

func NewFire(sizeX, sizeY float32) *Fire

func (*Fire) Process

func (f *Fire) Process(pi *vscene.ProcessInfo)

type PerlinNoise

type PerlinNoise struct {
	// contains filtered or unexported fields
}

func NewPerlinNoise

func NewPerlinNoise(size int) *PerlinNoise

func (*PerlinNoise) Add

func (pn *PerlinNoise) Add(factor float32, gridSize float32)

func (*PerlinNoise) AddToModel added in v0.20.1

func (pn *PerlinNoise) AddToModel(mb *vmodel.ModelBuilder, usage vk.ImageUsageFlags) vmodel.ImageIndex

func (*PerlinNoise) ToBytes

func (pn *PerlinNoise) ToBytes() (content []byte)

Jump to

Keyboard shortcuts

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