WanaPlan

API Docs for: 2.7.0
Show:

API.material

Module: API
Parent Module: Wanaplan

Summary

API for Wanaplan materials.

Constructor

API.material

Syntax

API.material

()

Summary

Methods

GlassMaterial

Syntax

GlassMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

LeatherMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

MattMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

MetalMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

PlasticMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

TexturedMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

TileMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

WhiteMaterial

(
  • name
  • params
)
Object

Summary

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

Syntax

WoodMaterial

(
  • name
  • params
)
Object

Summary

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.