API Docs for: 2.7.3
Show:

API.material Class

Module: API
Parent Module: Wanaplan

API for Wanaplan materials.

Constructor

API.material

()

Methods

GlassMaterial

(
  • name
  • params
)
Object

Returns a glass material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (opacity or alpha (the transparency of the glass), baseColor).

Returns:

Object:

A glass wanaplan material.

LeatherMaterial

(
  • name
  • params
)
Object

Returns a leather material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (diffuseTexture, bumpTexture).

Returns:

Object:

A leather wanaplan material.

MattMaterial

(
  • name
  • params
)
Object

Returns a matt material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (diffuseTexture).

Returns:

Object:

A matt wanaplan material.

MetalMaterial

(
  • name
  • params
)
Object

Returns a metal material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (brillance, baseColor).

Returns:

Object:

A metal wanaplan material.

PlasticMaterial

(
  • name
  • params
)
Object

Returns a plastic material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (baseColor).

Returns:

Object:

A plastic wanaplan material.

TexturedMaterial

(
  • name
  • params
)
Object

Returns a textured material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (diffuseTexture, bumpTexture).

Returns:

Object:

A textured wanaplan material.

TileMaterial

(
  • name
  • params
)
Object

Returns a tile material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (diffuseTexture, bumpTexture).

Returns:

Object:

A tile wanaplan material.

WhiteMaterial

(
  • name
  • params
)
Object

Returns a white material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (factor (factor of gray)).

Returns:

Object:

A white wanaplan material.

WoodMaterial

(
  • name
  • params
)
Object

Returns a wood material with or without custom params

Parameters:

  • name String

    Name of the material.

  • params Object

    Parameters of the material (diffuseTexture, bumpTexture).

Returns:

Object:

A wood wanaplan material.