unit

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMaterial

func AddMaterial(ctx extractor.Context, mat *material.Material, doc *gltf.Document, imgOpts *ImageOptions, matName string, unitData *dlbin.UnitData) (uint32, error)

func Convert

func Convert(currDoc *gltf.Document) func(ctx extractor.Context) error

func ConvertOpts

func ConvertOpts(ctx extractor.Context, imgOpts *ImageOptions, gltfDoc *gltf.Document) error

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
}

type TextureUsage

type TextureUsage uint32
const (
	AlbedoIridescence                     TextureUsage = 0xff2c91cc //stingray.Sum64([]byte("albedo_iridescence")).Thin()
	AlbedoEmissive                        TextureUsage = 0xe67ac0c7
	Albedo                                TextureUsage = 0xac652e43
	BaseData                              TextureUsage = 0xc2eb8d6e
	BloodSplatterTiler                    TextureUsage = 0x30e2d136
	BugSplatterTiler                      TextureUsage = 0x37831285
	CompositeArray                        TextureUsage = 0xa17b45a8
	CustomizationCamoTilerArray           TextureUsage = 0x0f5ff78d
	CustomizationMaterialDetailTilerArray TextureUsage = 0xd3a0408e
	DecalSheet                            TextureUsage = 0x632a8b80
	DetailNormalLeather                   TextureUsage = 0xe719da57
	DetailNormalPorcelain                 TextureUsage = 0x04fb61ad
	EmissiveColor                         TextureUsage = 0xc985395a
	IdMasksArray                          TextureUsage = 0xb281e5f2
	IlluminateData                        TextureUsage = 0x90b84a53
	LensCutoutTexture                     TextureUsage = 0x89bbcec2
	MaterialLUT                           TextureUsage = 0x7e662968
	MRA                                   TextureUsage = 0x756f6fa6
	NAR                                   TextureUsage = 0x4c567810
	Normal                                TextureUsage = 0xcaed6cd6
	PatternLUT                            TextureUsage = 0x81d4c49d
	PatternMasksArray                     TextureUsage = 0x05a27dd5
	WeatheringSpecial                     TextureUsage = 0xd2f99d38
	WeatheringDirt                        TextureUsage = 0x6834aa9b
	ScorchMarks                           TextureUsage = 0x5637e5d3
	SubsurfaceOpacity                     TextureUsage = 0xe7bd9019
	WoundData                             TextureUsage = 0xf8e31d7b
	WoundDerivative                       TextureUsage = 0xa59f5e11
	WoundNormal                           TextureUsage = 0x736a0029
	Wounds256                             TextureUsage = 0xa52f1caa
	Wounds512                             TextureUsage = 0x75d9cea2
	NormalMap                             TextureUsage = 0xf5c97d31
	DirtMap                               TextureUsage = 0x38e4b36f
	NoiseArray                            TextureUsage = 0x44f1ac4d
	LightBleedMap                         TextureUsage = 0x826c239a
	RoughnessMap                          TextureUsage = 0xc567338d
	InputImage                            TextureUsage = 0xf7aafe73
	DistortionMap                         TextureUsage = 0x08279894
	TextureLUT                            TextureUsage = 0xdbd93d8b
	NAC                                   TextureUsage = 0x1290c14e
	DetailData                            TextureUsage = 0x25288cc7
	MetalSurfaceData                      TextureUsage = 0xe32e3fa5
	ConcreteSurfaceData                   TextureUsage = 0x8d69d2ee
	CoveringAlbedo                        TextureUsage = 0x8261a5a5
	CoveringNormal                        TextureUsage = 0x4c6fc000
	WeatheringDataMask                    TextureUsage = 0xb4dcc2c1
	CapeLUT                               TextureUsage = 0x0e494183
	NormalSpecularAO                      TextureUsage = 0xe64c5236
	ColorRoughness                        TextureUsage = 0x8a013406
	ColorSpecularB                        TextureUsage = 0x828a53ad
	DetailNormals                         TextureUsage = 0xbe22de88
)

func (*TextureUsage) String

func (usage *TextureUsage) String() string

Jump to

Keyboard shortcuts

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