new Icosphere( textureSrc ) → {Icosphere}

Description
Creates a Icosphere object
Parameters
Name Type Description
textureSrc String Texture image src URL
Returns

Members


material :ShaderMaterial

Description
ShaderMaterial for Icosphere

init

Description
Initialize object into WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to initialize into
onInit function Callback to fire when initialized

createCollisionGeo

Description
Create collision geometry, used in raycasting

rayCastFrom

Description
Raycast to object
Parameters
Name Type Description
ray Object Ray to cast
Returns
Collision point

hitTest

Description
Does the ray intersect with the object?
Parameters
Name Type Description
ray Object Ray to cast
Returns

onSelection

Description
Unused function

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