Vixen
02b45cc4
csharp
public enum TextureContent

What a texture's bytes mean, which is the one thing a file cannot say for itself.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A normal map, an albedo map and a packed roughness-metalness mask are all four channels of eight-bit RGBA in a PNG. Nothing in the file distinguishes them, and every decision downstream depends on which one it is: whether to apply a transfer function, whether to renormalise, and which compressed format holds it without ruining it.

Called content rather than usage because TextureUsage is already the GPU's word for how a texture will be bound, and the two would sit in the same file constantly.

Fields and properties (3)

  • Colour

    Colour, seen by a person. sRGB in the file and in the sampler, filtered in linear light.

  • Linear

    Data, read by a shader — roughness, metalness, occlusion, a packed mask. No transfer function anywhere: applying one to a roughness map bends the whole material response.

  • NormalMap

    A tangent-space normal map. Linear, and its mips are averaged as directions.

Used by (10)

  • Describes_Vixen_Editor_AssetEditors_Importing_TextureImportEditsVixen.Editor.AssetEditors
  • ImportSettingsDocumentTestsVixen.Editor.AssetEditors.Tests
  • TextureImportEditsVixen.Editor.AssetEditors
  • TextureImportSettingsVixen.Editor.Assets
  • TextureImporterVixen.Editor.Assets
  • TextureImporterTestsVixen.Editor.Assets.Tests
  • TextureLadderVixen.Editor.AssetEditors
  • TextureLadderTestsVixen.Editor.AssetEditors.Tests
  • TypeRegistrationVixen.Editor.Assets
  • Vixen_Editor_AssetEditors_Importing_TextureImportEditsSerializerVixen.Editor.AssetEditors