Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • meshMaterial
    • lightPattern

Index

Constructors

constructor

Properties

_system

_system: coreSystem

colors

colors: any

flat

flat: boolean = false

fogEnabled

fogEnabled: boolean = true

glowEnabled

glowEnabled: boolean = false

intensity

intensity: number = 0

key

key: string

light

light: PointLight | DirectionalLight | SpotLight

lightEnabled

lightEnabled: boolean = true

materialtype

materialtype: "standard" | "water"

mesh

mesh: Mesh

opacity

opacity: number = 1

renderList

renderList: Array<AbstractMesh> = []

shadowEnabled

shadowEnabled: boolean = true

shadowGenerator

shadowGenerator: ShadowGenerator

textures

textures: any

transparentmaterial

transparentmaterial: PBRMaterial

waterEnabled

waterEnabled: boolean = true

Methods

_hide

  • _hide(): this
  • Returns this

_setAngleAxis

_setMesh

  • _setMesh(mesh: Mesh): void

_setTransparentMaterial

  • _setTransparentMaterial(visibility?: number): void
  • Parameters

    • Optional visibility: number

    Returns void

_show

  • _show(): this
  • Returns this

addFog

  • addFog(): this
  • Returns this

addGlow

  • addGlow(): this
  • Returns this

addShadow

  • addShadow(): this
  • Returns this

addShadowGenerator

  • addShadowGenerator(): void

addToWaters

  • addToWaters(): void
  • Returns void

checkSceneGlow

  • checkSceneGlow(): void
  • Returns void

createPBRM

  • createPBRM(mkey: string, options: any): PBRMaterial
  • Parameters

    • mkey: string
    • options: any

    Returns PBRMaterial

createWM

  • createWM(mkey: string, options: any): WaterMaterial
  • Parameters

    • mkey: string
    • options: any

    Returns WaterMaterial

deleteMaterial

  • deleteMaterial(): void
  • Returns void

deleteTexture

  • deleteTexture(type: string, always?: boolean): void
  • Parameters

    • type: string
    • Optional always: boolean

    Returns void

deleteTextureColor

  • deleteTextureColor(type: string): void
  • Parameters

    • type: string

    Returns void

deleteTextureColors

  • deleteTextureColors(): void
  • Returns void

deleteTextures

  • deleteTextures(): void
  • Returns void

destroy

  • destroy(): this

enableReflection

  • enableReflection(enable: boolean): void
  • Parameters

    • enable: boolean

    Returns void

enableRefraction

  • enableRefraction(enable: boolean): void
  • Parameters

    • enable: boolean

    Returns void

forcelistenEvent

  • forcelistenEvent(bool: boolean): void

getPosition

  • getPosition(): object

hide

  • hide(): this

highlight

  • highlight(test: boolean, color?: string): this
  • Parameters

    • test: boolean
    • Optional color: string

    Returns this

listenEvent

  • listenEvent(bool: boolean): void

off

  • off(): void

on

  • on(event: string, funct: Function): this

receiveShadow

  • receiveShadow(bool: boolean): void
  • Parameters

    • bool: boolean

    Returns void

removeFog

  • removeFog(): this
  • Returns this

removeFromWaters

  • removeFromWaters(): void
  • Returns void

removeGlow

  • removeGlow(): this
  • Returns this

removeShadow

  • removeShadow(): this
  • Returns this

removeShadowGenerator

  • removeShadowGenerator(): void

setAngleAxis

setCastShadow

  • setCastShadow(castshadow: boolean): void

setColor

  • setColor(color: Array<number>): void

setFlatMesh

  • setFlatMesh(flat: boolean): void

setFrame

  • setFrame(frame: boolean): void
  • Parameters

    • frame: boolean

    Returns void

setIndex

  • setIndex(index: number): this

setIndexOfRefraction

  • setIndexOfRefraction(index: number): void
  • Parameters

    • index: number

    Returns void

setIntensity

  • setIntensity(int: number): this

setLightMode

  • setLightMode(lightmode: "point" | "directional" | "spot"): void

setMaterialLayersEnabled

  • setMaterialLayersEnabled(materialLayersEnabled?: materialLayersEnabled): void
  • Parameters

    • Optional materialLayersEnabled: materialLayersEnabled

    Returns void

setMaterialProperties

  • setMaterialProperties(prop: materialChangeable): void
  • Parameters

    • prop: materialChangeable

    Returns void

setMaterialProperty

  • setMaterialProperty(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

setMaterialType

  • setMaterialType(materialtype?: any, temp?: boolean): this
  • Parameters

    • Optional materialtype: any
    • Optional temp: boolean

    Returns this

setMaxLights

  • setMaxLights(maxLights: number): void
  • Parameters

    • maxLights: number

    Returns void

setMesh

  • setMesh(mesh: Mesh): void
  • Parameters

    • mesh: Mesh

    Returns void

setOpacity

  • setOpacity(op: number): this

setParent

setPosAxis

setPower

  • setPower(): void

setReflectionMode

  • setReflectionMode(mode: string): void
  • Parameters

    • mode: string

    Returns void

setScaleAxis

setShadowDarkness

  • setShadowDarkness(darkness?: number): void

setTexture

  • setTexture(type: string, texture?: any, clone?: boolean): this
  • Parameters

    • type: string
    • Optional texture: any
    • Optional clone: boolean

    Returns this

setTextureColor

  • setTextureColor(type: string, color: Array<number>): this
  • Parameters

    • type: string
    • color: Array<number>

    Returns this

setTextureColors

  • setTextureColors(): void
  • Returns void

setTextureSize

  • setTextureSize(size: number): this
  • Parameters

    • size: number

    Returns this

setTextures

  • setTextures(): this
  • Returns this

setTransparentMaterial

  • setTransparentMaterial(visibility?: number): void
  • Parameters

    • Optional visibility: number

    Returns void

setWaterRenderList

  • setWaterRenderList(material: WaterMaterial): void
  • Parameters

    • material: WaterMaterial

    Returns void

show

  • show(): this

unSetParent

  • unSetParent(): this

Object literals

changeParameters

changeParameters: object

alpha

alpha: string = "alpha"

bumpheight

bumpheight: string = "bumpHeight"

bumplevel

bumplevel: string = "bumpTexture.level"

colorblendfactor

colorblendfactor: string = "colorBlendFactor"

metallic

metallic: string = "metallic"

roughness

roughness: string = "roughness"

waveheight

waveheight: string = "waveHeight"

wavelength

wavelength: string = "waveLength"

windforce

windforce: string = "windForce"

coordinatesModes

coordinatesModes: object

cubic

cubic: number = Texture.CUBIC_MODE

fixed

fixed: number = Texture.FIXED_EQUIRECTANGULAR_MODE

none

none: number = Texture.EXPLICIT_MODE

planar

planar: number = Texture.PLANAR_MODE

projection

projection: number = Texture.PROJECTION_MODE

skybox

skybox: number = Texture.SKYBOX_MODE

spherical

spherical: number = Texture.SPHERICAL_MODE

defaultColorValues

defaultColorValues: object

albedo

albedo: string = "white"

ambient

ambient: string = "black"

bump

bump: string = "black"

emissive

emissive: string = "black"

opacity

opacity: string = "white"

particle

particle: string = "white"

reflection

reflection: string = "white"

reflectivity

reflectivity: string = "white"

specular

specular: string = "black"

renameEvent

renameEvent: object

click

click: string = "OnPickTrigger"

down

down: string = "OnPickDownTrigger"

enter

enter: string = "OnPointerOverTrigger"

leave

leave: string = "OnPointerOutTrigger"

up

up: string = "OnPickUpTrigger"

rotation

rotation: object

x

x: number = 0

y

y: number = 0

z

z: number = 0

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc