Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "svf/materials"

Index

Functions

parseBooleanProperty

  • parseBooleanProperty(material: IMaterial, prop: string, defaultValue: boolean): boolean

parseColorProperty

  • parseColorProperty(material: IMaterial, prop: string, defaultValue: number[]): number[]

parseMaterials

  • parseMaterials(buffer: Buffer): Iterable<IMaterial | null>
  • Parses materials from a binary buffer, typically stored in a file called 'Materials.json.gz', referenced in the SVF manifest as an asset of type 'ProteinMaterials'.

    generator

    Parameters

    • buffer: Buffer

      Binary buffer to parse.

    Returns Iterable<IMaterial | null>

    Instances of parsed materials, or null if there are none (or are not supported).

parseScalarProperty

  • parseScalarProperty(material: IMaterial, prop: string, defaultValue: number): number

parseSimplePhongMaterial

parseTextureProperty

Generated using TypeDoc