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

DoubleSidedBuffer

Implements:

A double-sided mesh buffer. Takes a buffer and renders the front and the back as seperate objects to avoid some artifacts when rendering transparent meshes. Also allows to render the back of a mesh opaque while the front is transparent.

Example:

var sphereGeometryBuffer = new SphereGeometryBuffer( {
    position: new Float32Array( [ 0, 0, 0 ] ),
    color: new Float32Array( [ 1, 0, 0 ] ),
    radius: new Float32Array( [ 1 ] )
} );
var doubleSidedBuffer = new DoubleSidedBuffer( sphereGeometryBuffer );

Constructor Summary

Public Constructor
public

constructor(buffer: Buffer)

Create a double sided buffer

Member Summary

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

Method Summary

Public Methods
public
public
public
public
public
public

Public Constructors

public constructor(buffer: Buffer) source

Create a double sided buffer

Params:

NameTypeAttributeDescription
buffer Buffer

the buffer to be rendered double-sided

Public Members

public backBuffer source

public backMeshes source

public background source

public buffer source

public disablePicking source

public frontBuffer source

public frontMeshes source

public geometry source

public group source

public get matrix source

public set matrix source

public get pickable source

public picking source

public pickingGroup source

public side source

public size source

public visible source

public wireframe source

public wireframeGroup source

Public Methods

public dispose() source

public getMesh() source

public getPickingMesh() source

public getWireframeMesh() source

public setAttributes() source

public setParameters() source