manifest

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 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 Definition

type Definition struct {
	Object   voxelobject.ProcessedVoxelObject
	Palette  colour.Palette
	Manifest Manifest
	Scale    float64
	Debug    bool
	Time     bool
	Only8bpp bool
}

func (*Definition) SoftenEdges

func (d *Definition) SoftenEdges() bool

type Manifest

type Manifest struct {
	LightingAngle             int              `json:"lighting_angle"`
	LightingElevation         int              `json:"lighting_elevation"`
	Size                      geometry.Vector3 `json:"size"`
	RenderElevationAngle      int              `json:"render_elevation"`
	Sprites                   []Sprite         `json:"sprites"`
	DepthInfluence            float64          `json:"depth_influence"`
	TiledNormals              bool             `json:"tiled_normals"`
	SolidBase                 bool             `json:"solid_base"`
	SoftenEdges               float64          `json:"soften_edges"`
	Accuracy                  int              `json:"accuracy"`
	Sampler                   string           `json:"sampler"`
	Overlap                   float64          `json:"overlap"`
	Brightness                float64          `json:"brightness"`
	Contrast                  float64          `json:"contrast"`
	DetailBoost               float64          `json:"detail_boost"`
	FadeToBlack               bool             `json:"fade_to_black"`
	EdgeThreshold             float64          `json:"alpha_edge_threshold"`
	PadToFullLength           bool             `json:"pad_to_full_length"`
	SliceThreshold            int              `json:"slice_threshold"`
	SliceLength               int              `json:"slice_length"`
	SliceOverlap              int              `json:"slice_overlap"`
	Falloff                   float64          `json:"falloff_adjustment"`
	RecoveredVoxelSuppression float64          `json:"recovered_voxel_suppression"`
	Joggle                    float64          `json:"joggle"`
}

func FromJson

func FromJson(handle io.Reader) (manifest Manifest, err error)

func (*Manifest) GetFromReader

func (m *Manifest) GetFromReader(handle io.Reader) (err error)

func (*Manifest) SetSpriteSizes

func (m *Manifest) SetSpriteSizes()

type Sprite

type Sprite struct {
	Angle                float64 `json:"angle"`
	Width                int     `json:"width"`
	Height               int     `json:"height"`
	OffsetX              float64 `json:"offset_x"`
	OffsetY              float64 `json:"offset_y"`
	X                    int
	ZError               float64
	Flip                 bool    `json:"flip"`
	Slice                int     `json:"slice"`
	RenderElevationAngle int     `json:"render_elevation"`
	Joggle               float64 `json:"joggle"`
}

Jump to

Keyboard shortcuts

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