new Instanced( params ) → {Instanced}

Description
Creates an Instanced object
Parameters
Name Type Description
params Object parameter object
Returns

Members


numInstances :number

Description
max number of instances

init

Description
Initializes buffers in WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext to initialize in

createCollisionGeo

Description
Unused function, required for drawable interface

update

Description
Updates state prior to draw
Parameters
Name Type Description
gl WebglContext WebglContext to update in
sceneProps Object Object of scene uniforms
time number frametime

draw

Description
Draw object to WebglContext
Parameters
Name Type Description
gl WebglContext WebglContext

rayCastFrom

Description
Ray cast to points object
Parameters
Name Type Description
ray Object worldspace ray to cast
Returns

hitTest

Description
Hit test to points object
Parameters
Name Type Description
ray Object worldspace ray to test
Returns