Home Reference Source
public class | source

ParticleBuffer

Creates and provides performant buffers for mapping particle properties to geometry vertices.

See:

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

buffer: THREE.InterleavedBuffer: *

Gets the publicly accessible interleaved buffer.

public
public
public
public get

stride: *

Method Summary

Public Methods
public

createBufferGeometry(): ParticleBufferGeometry

Sets the geometry's buffer attributes.

NOTE Each attribute needs to be set at the right index in the buffer right after the previous attribute that occupies a set amount of size in the buffer.

public

Creates the interleaved buffer that will be used to write data to the GPU.

Public Constructors

public constructor() source

Public Members

public get buffer: THREE.InterleavedBuffer: * source

Gets the publicly accessible interleaved buffer.

Return:

THREE.InterleavedBuffer

buffers - The interleaved buffer

public geometry: * source

public interleavedBuffer: * source

public maxParticles: * source

public get stride: * source

Public Methods

public createBufferGeometry(): ParticleBufferGeometry source

Sets the geometry's buffer attributes.

NOTE Each attribute needs to be set at the right index in the buffer right after the previous attribute that occupies a set amount of size in the buffer.

Return:

ParticleBufferGeometry

public createInterleavedBuffer(): ParticleBuffer source

Creates the interleaved buffer that will be used to write data to the GPU.

Return:

ParticleBuffer