new Atmosphere( params )

Parameters
Name Type Description
params Object

Members


material :ShaderMaterial


material :ShaderMaterial


nScale :number


init

Parameters
Name Type Description
gl WebglContext WebglContext
onInit function Callback fired when object is initialized in WebglContext

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