Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Material

example
entity.addComponent(Mesh).addComponent(Material, {
   alpha: 0.7,
   color: { diffuse: "#E74C3C" }
});
entity.addComponent(Mesh).addComponent(Material, {
   texture: {
     diffuse: { url: "PATH_TO_TEXTURE", uScale: 4, vScale: 4 }
   }
});

Hierarchy

  • Material

Implements

Index

Properties

Optional alpha

alpha: undefined | number

Optional color

color: MaterialColorProperties = materialColorHex()
default

{ diffuse: "#ffffff" }

object

object: StandardMaterial

Optional parallaxScaleBias

parallaxScaleBias: undefined | number

Optional scene

scene: Entity

Optional texture

Optional useParallax

useParallax: undefined | false | true

Optional useParallaxOcclusion

useParallaxOcclusion: undefined | false | true

Generated using TypeDoc