Hyperball stick buffer. Depending on the value ExtensionFragDepth and params.disableImpostor the constructor returns either a CylinderGeometryBuffer or a HyperballStickImpostorBuffer
params.disableImpostor
{Buffer}
var hyperballStickBuffer = new HyperballStickBuffer({ position1: new Float32Array([ 0, 0, 0 ]), position2: new Float32Array([ 2, 2, 2 ]), color: new Float32Array([ 1, 0, 0 ]), color2: new Float32Array([ 0, 1, 0 ]), radius: new Float32Array([ 1 ]), radius2: new Float32Array([ 2 ]) });
attribute object
parameter object
Generated using TypeDoc
Hyperball stick buffer. Depending on the value ExtensionFragDepth and
params.disableImpostor
the constructor returns either a CylinderGeometryBuffer or a HyperballStickImpostorBuffer{Buffer}
var hyperballStickBuffer = new HyperballStickBuffer({ position1: new Float32Array([ 0, 0, 0 ]), position2: new Float32Array([ 2, 2, 2 ]), color: new Float32Array([ 1, 0, 0 ]), color2: new Float32Array([ 0, 1, 0 ]), radius: new Float32Array([ 1 ]), radius2: new Float32Array([ 2 ]) });