Class: Cache

x3dom. Cache

Inheritance

  • Cache

Constructor

Cache()

Cache Constructor


Methods

getDynamicShader(gl, viewarea, shape)

Returns a dynamic generated shader program by viewarea and shape

Parameters:
Name Type Description
gl
viewarea
shape

getShader(gl, shaderIdentifier) → {*}

Returns one of the default shader programs

Parameters:
Name Type Description
gl
shaderIdentifier

Returns:

getShaderByProperties(gl, shape, properties, pickMode, shadows)

Returns a dynamic generated shader program by properties

Parameters:
Name Type Description
gl
shape
properties
pickMode
shadows

getShadowRenderingShader(gl, shadowedLights) → {*}

Returns the dynamically created shadow rendering shader

Parameters:
Name Type Description
gl
shadowedLights

Returns:

getTexture2D(gl, doc, url, bgnd, crossOrigin, scale, genMipMaps) → {*}

Returns a Texture 2D

Parameters:
Name Type Description
gl
doc
url
bgnd
crossOrigin
scale
genMipMaps

Returns:

getTexture2DByDEF(gl, nameSpace, def) → {*}

Returns a Texture 2D

Parameters:
Name Type Description
gl
nameSpace
def

Returns:

getTextureCube(gl, doc, url, bgnd, crossOrigin, scale, genMipMaps) → {*}

Returns a Cube Texture

Parameters:
Name Type Description
gl
doc
url
bgnd
crossOrigin
scale
genMipMaps

Returns: