API Docs for: 2.7.3
Show:

wnp.TileMaterial Class

Module: Materials
Parent Module: Wanaplan

This class is deprecated.

A material to represent Tiles

Constructor

wnp.TileMaterial

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

Parameters:

  • name String

    A name.

  • scene BABYLON.Scene

    The scene.

  • [params={}] Object optional

    Material parameters

Methods

_batchedBind

() private

Inherited from wnp.StandardMaterial:

_isReady

(
  • defines
  • optionalDefines
  • engine
  • mesh
)
private

Inherited from wnp.StandardMaterial:

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

(
  • world
  • mesh
)
private

Inherited from wnp.StandardMaterial:

Bind the mandatory things.

Parameters:

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

_preBind

() private

Inherited from wnp.StandardMaterial:

bind

(
  • world
  • mesh
)
private

Inherited from wnp.StandardMaterial:

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

() private

Inherited from wnp.StandardMaterial:

Bind alpha transparency to the GPU.

bindBump

() private

Inherited from wnp.StandardMaterial:

Bind bump informations and texture to the GPU.

bindColor

() private

Inherited from wnp.StandardMaterial:

Bind the diffuse color to the GPU.

bindDiffuse

() private

Inherited from wnp.StandardMaterial:

Bind diffuse informations and texture to the GPU.

bindEnv

() private

Inherited from wnp.StandardMaterial:

Bind envirronement informations and texture to the GPU.

bindLights

() private

Inherited from wnp.StandardMaterial:

Bind lights informations to the GPU.

bindShadows

(
  • world
  • mesh
)
private

Inherited from wnp.StandardMaterial:

Bind shadows informations to the GPU.

Parameters:

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

bindView

() private

Inherited from wnp.StandardMaterial:

Bind the camera informations to the GPU.

clone

(
  • name
)

Inherited from wnp.StandardMaterial:

Clones the material.

Parameters:

isReady

(
  • mesh
)
private

Inherited from wnp.StandardMaterial:

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

(
  • color
)

Inherited from wnp.StandardMaterial:

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

() private

Inherited from wnp.StandardMaterial:

Unbind the Important value of the material.

Properties

addColor

BABYLON.Color3 private

Inherited from wnp.StandardMaterial:

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

Default: null

isDefault

Boolean

Inherited from wnp.StandardMaterial:

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