textureset

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	R float64
	G float64
	B float64
	A float64
}

func NewRGBAColor

func NewRGBAColor(r, g, b, a float64) *Color

func NewRGBColor

func NewRGBColor(r, g, b float64) *Color

func NewRGBColor255

func NewRGBColor255(r, g, b float64) *Color

func (*Color) Grayscale

func (color *Color) Grayscale() float64

func (*Color) Lerp

func (color *Color) Lerp(other *Color, x float64) *Color

type TextureSet

type TextureSet interface {
	// noise
	HeightMapFrequency() float64
	HeightMapOctaves() int64
	HeatMapFrequency() float64
	HeatMapOctaves() int64
	MoistureMapFrequency() float64
	MoistureMapOctaves() int64
	CloudMapFrequency() float64
	CloudMapOctaves() int64

	// tiles
	Init(tile *Tile)
	HeightColor(tile *Tile) *Color
	HeatColor(tile *Tile) *Color
	MoistureColor(tile *Tile) *Color
	BiomeColor(tile *Tile) *Color
	BumpColor(tile *Tile) *Color
	CloudColor(tile *Tile) *Color
	SpecularColor(tile *Tile) *Color
}

type Tile

type Tile struct {
	Index         int
	X             int
	Y             int
	HeightValue   float64
	HeatValue     float64
	MoistureValue float64
	CloudValue    float64
	Top           func() *Tile
	Bottom        func() *Tile
	Left          func() *Tile
	Right         func() *Tile
	TextureSet    TextureSet
}

func (*Tile) BiomeColor

func (tile *Tile) BiomeColor() *Color

func (*Tile) BumpColor

func (tile *Tile) BumpColor() *Color

func (*Tile) CloudColor

func (tile *Tile) CloudColor() *Color

func (*Tile) HeatColor

func (tile *Tile) HeatColor() *Color

func (*Tile) HeightColor

func (tile *Tile) HeightColor() *Color

func (*Tile) Init

func (tile *Tile) Init()

func (*Tile) MoistureColor

func (tile *Tile) MoistureColor() *Color

func (*Tile) SpecularColor

func (tile *Tile) SpecularColor() *Color

Jump to

Keyboard shortcuts

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