NGL@0.10.4 Home Manual Reference Source GalleryRepository
import SphereImpostorBuffer from 'ngl/src/buffer/sphereimpostor-buffer.js'
public class | source

SphereImpostorBuffer

Extends:

BufferMappedBufferQuadBuffer → SphereImpostorBuffer

Sphere impostor buffer.

Example:

var sphereImpostorBuffer = new SphereImpostorBuffer( {
    position: new Float32Array( [ 0, 0, 0 ] ),
    color: new Float32Array( [ 1, 0, 0 ] ),
    radius: new Float32Array( [ 1 ] )
} );

Constructor Summary

Public Constructor
public

Inherited Summary

From class Buffer
public get abstract
public get abstract
public

Free buffer resources

public

Set buffer parameters

public

Set buffer visibility

From class MappedBuffer
public get abstract
public get abstract
public get abstract
public get abstract
public get abstract
public get abstract

Public Constructors

public constructor(data: Object, params: BufferParameters) source

Override:

Buffer#constructor

Params:

NameTypeAttributeDescription
data Object

attribute object

data.position Float32Array

positions

data.color Float32Array

colors

data.radius Float32Array

radii

data.picking Picker
  • optional

picking ids

params BufferParameters

parameter object