WanaPlan

API Docs for: 2.7.0
Show:

wnp.LeatherMaterial

Module: Materials
Parent Module: Wanaplan

Summary

A material to represent objects made of leather.

Constructor

wnp.LeatherMaterial

Syntax

wnp.LeatherMaterial

(
  • name
  • scene
  • [params={}]
)

Summary

Parameters:

  • name String

    A name.

  • scene BABYLON.Scene

    The scene.

  • [params={}] Object optional

    Material parameters

Methods

_batchedBind

Inherited from wnp.StandardMaterial:

Syntax

_batchedBind

() private

Summary

_isReady

Inherited from wnp.StandardMaterial:

Syntax

_isReady

(
  • defines
  • optionalDefines
  • engine
  • mesh
)
private

Summary

Checks if the material is ready. (If all textures and attributes are loaded correctly)

Parameters:

  • defines String[]
    The basic defines of the shader.
  • optionalDefines String[]
    The optional defines of your custom shader.
  • engine BABYLON.engine
    The engine of babylon.
  • mesh BABYLON.Mesh
    The mesh where the material is set on.

_mandatoryBind

Inherited from wnp.StandardMaterial:

Syntax

_mandatoryBind

(
  • world
  • mesh
)
private

Summary

Bind the mandatory things.

Parameters:

  • world BABYLON.Matrix
    The world Matrix.
  • mesh BABYLON.mesh
    The mesh.

_preBind

Inherited from wnp.StandardMaterial:

Syntax

_preBind

() private

Summary

bind

Inherited from wnp.StandardMaterial:

Syntax

bind

(
  • world
  • mesh
)
private

Summary

Bind the Important value of the material. Send the property of the material on the GPU for the shaders.

Parameters:

  • world BABYLON.Matrix
    The world Matrix.
  • mesh BABYLON.mesh
    The mesh.

bindAlpha

Inherited from wnp.StandardMaterial:

Syntax

bindAlpha

() private

Summary

Bind alpha transparency to the GPU.

bindBump

Inherited from wnp.StandardMaterial:

Syntax

bindBump

() private

Summary

Bind bump informations and texture to the GPU.

bindColor

Inherited from wnp.StandardMaterial:

Syntax

bindColor

() private

Summary

Bind the diffuse color to the GPU.

bindDiffuse

Inherited from wnp.StandardMaterial:

Syntax

bindDiffuse

() private

Summary

Bind diffuse informations and texture to the GPU.

bindEnv

Inherited from wnp.StandardMaterial:

Syntax

bindEnv

() private

Summary

Bind envirronement informations and texture to the GPU.

bindLights

Inherited from wnp.StandardMaterial:

Syntax

bindLights

() private

Summary

Bind lights informations to the GPU.

bindShadows

Inherited from wnp.StandardMaterial:

Syntax

bindShadows

(
  • world
  • mesh
)
private

Summary

Bind shadows informations to the GPU.

Parameters:

  • world BABYLON.Matrix
    The world Matrix.
  • mesh BABYLON.mesh
    The mesh.

bindView

Inherited from wnp.StandardMaterial:

Syntax

bindView

() private

Summary

Bind the camera informations to the GPU.

clone

Inherited from wnp.StandardMaterial:

Syntax

clone

(
  • name
)

Summary

Clones the material.

Parameters:

isReady

Inherited from wnp.StandardMaterial:

Syntax

isReady

(
  • mesh
)
private

Summary

Checks if the material is ready. (If all textures and attributes are loaded correctly)

Parameters:

  • mesh BABYLON.Mesh
    The mesh where the material is set on.

setBaseColor

Inherited from wnp.StandardMaterial:

Syntax

setBaseColor

(
  • color
)

Summary

Sets the base color of the material. This method has different behaviours depending on the child class implementation.

Parameters:

  • color BABYLON.Color3
    The color.

unbind

Inherited from wnp.StandardMaterial:

Syntax

unbind

() private

Summary

Unbind the Important value of the material.

Properties

addColor

Inherited from wnp.StandardMaterial:

Syntax

addColor

BABYLON.Color3 private

Summary

Whenever a textured material is colorable (i.e. colorable tiles), this property stores the blent color.

Default: null

isDefault

Inherited from wnp.StandardMaterial:

Syntax

isDefault

Boolean

Summary

Flag which indicates if the material has been applied by the engine or by the user. __/!\ WARNING__ : If set to true, in order to save storage, the material will NOT be serialized.

Default: true