SphereBuffer
Implements:
Sphere buffer. Depending on the value ExtensionFragDepth and
params.disableImpostor the constructor returns either a
SphereGeometryBuffer or a SphereImpostorBuffer
Example:
var sphereBuffer = new SphereBuffer( {
position: new Float32Array( [ 0, 0, 0 ] ),
color: new Float32Array( [ 1, 0, 0 ] ),
radius: new Float32Array( [ 1 ] )
} );
Constructor Summary
| Public Constructor | ||
| public |
constructor(data: Object, params: BufferParameters): SphereGeometryBuffer | SphereImpostorBuffer |
|
Public Constructors
public constructor(data: Object, params: BufferParameters): SphereGeometryBuffer | SphereImpostorBuffer source
Params:
| Name | Type | Attribute | Description |
| data | Object | buffer data |
|
| data.position | Float32Array | positions |
|
| data.color | Float32Array | colors |
|
| data.radius | Float32Array | radii |
|
| data.picking | Picker |
|
picking ids |
| params | BufferParameters | parameters object |
