Documentation
¶
Index ¶
- func AddMaterial(ctx *extractor.Context, mat *material.Material, doc *gltf.Document, ...) (uint32, error)
- func Convert(currDoc *gltf.Document) func(ctx *extractor.Context) error
- func ConvertToFolder(ctx *extractor.Context) error
- func WriteDDS(ctx *extractor.Context, doc *gltf.Document, ddsR io.ReadSeeker, ...) (uint32, error)
- type ImageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMaterial ¶
func ConvertToFolder ¶ added in v0.7.18
Uses ctx.Config().Material.TexturesFormat as format for individual textures! Add an extra parameter for format when this is used by another extractor.
Types ¶
type ImageOptions ¶
type ImageOptions struct {
Jpeg bool // PNG if false, JPEG if true
JpegQuality int // Quality if Jpeg == true; interval = [1;100]; 0 for default quality
PngCompression png.CompressionLevel // Compression if Jpeg == false
Raw bool // Save raw dds in addition to png/jpg using gltf MSFT DDS extension if true
}
func GetImageOpts ¶ added in v0.6.0
func GetImageOpts(ctx *extractor.Context) (*ImageOptions, error)
Click to show internal directories.
Click to hide internal directories.