StandardMaterial

clay. StandardMaterial

# new StandardMaterial()

Source:

Standard material without custom shader.

Example
var mat = new clay.StandardMaterial({
    color: [1, 1, 1],
    diffuseMap: diffuseTexture
});
mat.roughness = 1;

Extends

  • clay.Base

Members

# alpha :number

Source:
Default Value:
  • 1
Type:
  • number

# alphaCutoff :number

Source:

Cutoff threshold for alpha test

Type:
  • number

# alphaTest :boolean

Source:
Type:
  • boolean

# aoIntensity :number

Source:
Default Value:
  • 1
Type:
  • number

# aoMap :clay.Texture2D

Source:
Type:

# brdfLookup :clay.Texture2D

Source:

BRDF Lookup is generated by clay.util.cubemap.integrateBrdf

Type:

# color :Array.<number>

Source:
Default Value:
  • [1, 1, 1]
Type:
  • Array.<number>

# decodeRGBM :boolean

Source:
Type:
  • boolean

# diffuseMap :clay.Texture2D

Source:
Type:

# doubleSided :boolean

Source:
Type:
  • boolean

# emission :Array.<number>

Source:
Default Value:
  • [0, 0, 0]
Type:
  • Array.<number>

# emissionIntensity :number

Source:
Default Value:
  • 0
Type:
  • number

# emissiveMap :clay.Texture2D

Source:
Type:

# encodeRGBM :boolean

Source:
Type:
  • boolean

# environmentBox :clay.BoundingBox

Source:
Type:

# environmentMap :clay.TextureCube

Source:
Type:

# environmentMapPrefiltered :boolean

Source:
Type:
  • boolean

# linear :boolean

Source:
Type:
  • boolean

# metalness :number

Source:
Default Value:
  • 0
Type:
  • number

# metalnessChannel :Number

Source:
Type:
  • Number

# metalnessMap :clay.Texture2D

Source:
Type:

# normalMap :clay.Texture2D

Source:
Type:

# normalScale :number

Source:

Scalar multiplier applied to each normal vector of normal texture.

Type:
  • number

# roughness :number

Source:
Default Value:
  • 0.5
Type:
  • number

# roughnessChannel :Number

Source:
Type:
  • Number

# roughnessMap :clay.Texture2D

Source:
Type:

# ssaoMap :clay.Texture2D

Source:
Type:

# uvOffset :Array.<number>

Source:
Default Value:
  • [0, 0]
Type:
  • Array.<number>

# uvRepeat :Array.<number>

Source:
Default Value:
  • [1, 1]
Type:
  • Array.<number>