new Background( textureSrc ) → {Background}

Description
Create a new Background Object
Parameters
Name Type Description
textureSrc String Texture image source
Returns

Members


material :ShaderMaterial

Description
Material for Background

movementSpeed :Array

Description
Texture speed for Clouds

init

Description
Initializes Background in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext
onInit function Callback fired when initialized

createCollisionGeo

Description
Unused function, required for Drawable Interface

rayCastFrom

Description
Raycast to geometry, required for Drawable Interface
Returns
false

hitTest

Description
Raycast to geometry, required for Drawable Interface
Returns
false

onSelection

Description
Unused function, required for Drawable Interface

update

Description
Updates Uniforms in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext
sceneProps Object Scene uniform object
time number frametime

draw

Description
Draws object to WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to draw to