Model.Texture.Encode

Description

Name

class Tinman.Model.Texture.Encode

Derived from

Model.Texture

Encodes a texture from the given image.

Fields / Required

source

Type

Image

Constraint

# != null

The source image from which to create a texture.

Fields / Optional

format

Type

Texture.Format

Default

Texture.Format.None

The texture format to use if the image file does not specify one. Set to null to choose a texture format from the pixel format automatically.


srgb

Type

bool

Default

true

Create sRGB compressed texture?