texture

package
v0.0.0-...-af59c4b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapData

type MapData struct {
	MinValue float64
	MaxValue float64
	// contains filtered or unexported fields
}

func NewMapData

func NewMapData(width, height int) *MapData

func (*MapData) Get

func (mapData *MapData) Get(x, y int) float64

func (*MapData) GetNormalized

func (mapData *MapData) GetNormalized(x, y int) float64

func (*MapData) Set

func (mapData *MapData) Set(x, y int, value float64)

type TextureGenerator

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

func NewTextureGenerator

func NewTextureGenerator(width, height int, textureSet textureset.TextureSet, seed int64) *TextureGenerator

func (*TextureGenerator) GenerateBiomeMapTexture

func (textureGenerator *TextureGenerator) GenerateBiomeMapTexture() *image.RGBA

func (*TextureGenerator) GenerateBumpMapTexture

func (textureGenerator *TextureGenerator) GenerateBumpMapTexture() *image.RGBA

func (*TextureGenerator) GenerateCloudMapTexture

func (textureGenerator *TextureGenerator) GenerateCloudMapTexture() *image.RGBA

func (*TextureGenerator) GenerateHeatMapTexture

func (textureGenerator *TextureGenerator) GenerateHeatMapTexture() *image.RGBA

func (*TextureGenerator) GenerateHeightMapTexture

func (textureGenerator *TextureGenerator) GenerateHeightMapTexture() *image.RGBA

func (*TextureGenerator) GenerateMoistureMapTexture

func (textureGenerator *TextureGenerator) GenerateMoistureMapTexture() *image.RGBA

func (*TextureGenerator) GenerateNormalMapTexture

func (textureGenerator *TextureGenerator) GenerateNormalMapTexture(strength float64) *image.RGBA

func (*TextureGenerator) GenerateSpecularMapTexture

func (textureGenerator *TextureGenerator) GenerateSpecularMapTexture() *image.RGBA

func (*TextureGenerator) GenerateTextures

func (textureGenerator *TextureGenerator) GenerateTextures(strength float64) *image.RGBA

func (*TextureGenerator) Init

func (textureGenerator *TextureGenerator) Init()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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