tool

package
v0.0.0-...-472235a Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MODE_CUBIC = 1
View Source
const MODE_EXP = 4
View Source
const MODE_FLIPBOOK = 6
View Source
const MODE_LINEAR = 2
View Source
const MODE_LOG = 3
View Source
const MODE_SQUARE = 0
View Source
const MODE_UNITY_MASK = 5
View Source
const PI = 3.14159265358979323846

Variables

This section is empty.

Functions

func CreateFlipbookTextures

func CreateFlipbookTextures(rows int, cols int, height int, width int, files []string, output string)

func CreateUnityDetailMask

func CreateUnityDetailMask(metallic_file string, ambient_file string, detail_file string, smoothness_file string, output_file string)

func EnableLog

func EnableLog()

func Luminance

func Luminance(c color.Color) float64

func MapToHemisphere

func MapToHemisphere(w float64, mode int, file string, output string)

Map 2D image to disk hemishphere projection , here we preserve the angle

Types

type Image

type Image struct {
	Image image.Image
	// contains filtered or unexported fields
}

func OpenImage

func OpenImage(path string) (*Image, error)

Open PNG image and store in an image object

func (*Image) Save

func (img *Image) Save(output string) error

Save image to file

Jump to

Keyboard shortcuts

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