Versions in this module Expand all Collapse all v0 v0.1.4 Nov 2, 2025 Changes in this version type Properties + BaseTexture2 string v0.1.3 Apr 20, 2021 Changes in this version + var ErrorMaterialKeyValuesEmpty = errors.New("material contains empty key value(s)") + type Material interface + func FromFilesystem(filePath string, fs virtualFilesystem, definition Material) (Material, error) + func FromKeyValues(kvs *keyvalues.KeyValue, definition Material) (Material, error) + func FromStream(stream io.Reader, definition Material) (Material, error) + type Properties struct + AllowDiffuseModulation string + Alpha float32 + AlphaTest string + AmbientOcclusion string + BaseTexture string + BaseTextureTransform string + BasetextureNoEnvmap string + BlendModulateTexture string + BlendTintByBaseAlpha string + BumpFrame string + BumpScale string + BumpTransform string + Bumpmap string + BumpmapBaseTexture2WithBumpmap string + Bumpoffset string + Color string + CompileClip int + CompileDetail int + CompileKeywords string + CompileLadder int + CompileNoDraw int + CompileNoLight int + CompileNoToolTexture int + CompileNonSolid int + CompilePassBullets int + CompileSkip int + CompileSky int + CompileToolTexture string + Detail string + DisplacementMap string + DistanceAlpha string + EmissiveBlend string + Envmap string + EnvmapContrast string + EnvmapFrame string + EnvmapMask string + EnvmapMaskFrame string + EnvmapMaskScale string + EnvmapSaturation string + EnvmpaMaskTransform string + EnvmpaTint string + Flesh string + HalfLambert string + IgnoreZ int + LightwarpTexture string + MaxFogDensityScalar string + Model int + NoCull string + NoDecal string + NoDraw string + NoFog int + NoTint string + NormalMap string + ParallaxMap string + Phong string + PointSampleMagFilter string + Reflectivity string + Rimlight string + SSBump string + SeamlessScale string + Selfillum int + ShaderName string + SurfaceProp string + Translucent int + TreeSway string + VertexAlpha int + VertexColor int + WriteZ int + func NewProperties() *Properties