NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import PointBuffer from 'ngl/src/buffer/point-buffer.js'
public class | source

PointBuffer

Extends:

Buffer → PointBuffer

Point buffer. Draws points. Optionally textured.

Example:

var pointBuffer = new PointBuffer( {
    position: new Float32Array( [ 0, 0, 0 ] ),
    color: new Float32Array( [ 1, 0, 0 ] )
} );

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public get
public get
public get
public
public
public
public

tex

public
public get

Method Summary

Public Methods
public
public
public
public
public

Inherited Summary

From class Buffer
public get
public get
public get abstract
public get
public set
public get
public get
public get
public get
public get abstract
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
private
public
public
public

Free buffer resources

public
public
public
public
public
public
public
public
public
public
public
public
public
public

Sets buffer attributes

public
public

Set buffer parameters

public
public
public

Set buffer visibility

public
public
public
private

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

params BufferParameters

parameter object

Public Members

public alphaTest source

public edgeBleach source

public forceTransparent source

Override:

Buffer#forceTransparent

public get fragmentShader source

Override:

Buffer#fragmentShader

public get isPoint source

public get parameters source

Override:

Buffer#parameters

public pointSize source

public sizeAttenuation source

public sortParticles source

public tex source

public useTexture source

public get vertexShader source

Override:

Buffer#vertexShader

Public Methods

public dispose() source

Free buffer resources

Override:

Buffer#dispose

public getDefines() source

Override:

Buffer#getDefines

public makeMaterial() source

Override:

Buffer#makeMaterial

public makeTexture() source

public setUniforms() source

Override:

Buffer#setUniforms