material

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Unk00           [12]uint8
	SectionMainSize uint32   // == size of ins[DataMain] - 0x18
	SectionGPUSize  uint32   // == size of ins[DataGPU]
	Unk01           [4]uint8 // seems to always == 0x18
	BaseMaterial    stingray.Hash
	Unk02           [32]uint8
	NumTextures     uint32
	Unk03           [36]uint8
	NumSettings     uint32
	Unk04           [28]uint8
}

type Material

type Material struct {
	BaseMaterial stingray.Hash
	Textures     map[stingray.ThinHash]stingray.Hash
	Settings     map[stingray.ThinHash][]float32
}

func Load

func Load(r io.ReadSeeker) (*Material, error)

type SettingDefinition added in v0.5.26

type SettingDefinition struct {
	Type   SettingsType
	Count  uint32
	Usage  stingray.ThinHash
	Offset uint32
	Stride uint32
}

type SettingsType added in v0.5.26

type SettingsType uint32
const (
	SettingTypeScalar  SettingsType = 0
	SettingTypeVector2 SettingsType = 1
	SettingTypeVector3 SettingsType = 2
	SettingTypeVector4 SettingsType = 3
	SettingTypeOther   SettingsType = 12
)

Directories

Path Synopsis
d3d

Jump to

Keyboard shortcuts

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