Options
All
  • Public
  • Public/Protected
  • All
Menu

Reflection texture.

Hierarchy

Index

Constructors

constructor

  • new ReflectionTexture(engine: Engine, background: string | HTMLImageElement, quality: number, reflectionAlpha: string | number): ReflectionTexture

Properties

Private _background

_background: string | HTMLImageElement

Private _camera

_camera: Camera

Protected _loadedTextureCount

_loadedTextureCount: number = 0

Private _object

_object: null | Entity

Protected _onTextureLoad

_onTextureLoad: Function[]

Private _quality

_quality: number

Private _reflectionAlpha

_reflectionAlpha: number = -1

alpha

alpha: boolean = false

color

color: Uint8Array = new Uint8Array([229, 91, 91, 255])

engine

engine: Engine

loaded

loaded: boolean = false

textureBlockLocation

textureBlockLocation: number = -1

textures

textures: object

Type declaration

  • negativeX: HTMLImageElement | HTMLCanvasElement | null
  • negativeY: HTMLImageElement | HTMLCanvasElement | null
  • negativeZ: HTMLImageElement | HTMLCanvasElement | null
  • positiveX: HTMLImageElement | HTMLCanvasElement | null
  • positiveY: HTMLImageElement | HTMLCanvasElement | null
  • positiveZ: HTMLImageElement | HTMLCanvasElement | null

Protected webgl

webgl: WebGLRenderingContext

webglTexture

webglTexture: any

Accessors

object

Methods

Protected bindCubeTexture

  • bindCubeTexture(): void

Protected generate

  • generate(): void

setColor

  • setColor(r: number, g: number, b: number, a: number): void
  • setColor(hexColor: string): void

setImagesFromPath

  • setImagesFromPath(positiveX: string, negativeX: string, positiveY: string, negativeY: string, positiveZ: string, negativeZ: string): void

setLoadedImages

  • setLoadedImages(positiveX: HTMLImageElement | HTMLCanvasElement, negativeX: HTMLImageElement | HTMLCanvasElement, positiveY: HTMLImageElement | HTMLCanvasElement, negativeY: HTMLImageElement | HTMLCanvasElement, positiveZ: HTMLImageElement | HTMLCanvasElement, negativeZ: HTMLImageElement | HTMLCanvasElement): void
  • Sets images that loaded.

    Parameters

    • positiveX: HTMLImageElement | HTMLCanvasElement
    • negativeX: HTMLImageElement | HTMLCanvasElement
    • positiveY: HTMLImageElement | HTMLCanvasElement
    • negativeY: HTMLImageElement | HTMLCanvasElement
    • positiveZ: HTMLImageElement | HTMLCanvasElement
    • negativeZ: HTMLImageElement | HTMLCanvasElement

    Returns void

setLoadingImages

  • setLoadingImages(positiveX: HTMLImageElement, negativeX: HTMLImageElement, positiveY: HTMLImageElement, negativeY: HTMLImageElement, positiveZ: HTMLImageElement, negativeZ: HTMLImageElement): void
  • Sets images that have src, but not loaded.

    Parameters

    • positiveX: HTMLImageElement
    • negativeX: HTMLImageElement
    • positiveY: HTMLImageElement
    • negativeY: HTMLImageElement
    • positiveZ: HTMLImageElement
    • negativeZ: HTMLImageElement

    Returns void

setSkybox

  • setSkybox(path: string): void

Generated using TypeDoc