Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PointBuffer

Point buffer. Draws points. Optionally textured.

example

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

Hierarchy

Index

Constructors

constructor

Properties

dynamic

dynamic: boolean = true

fragmentShader

fragmentShader: string = "Point.frag"

geometry

geometry: BufferGeometry = new BufferGeometry()

group

group: Group = new Group()

indexVersion

indexVersion: number = 0

isImpostor

isImpostor: boolean = false

isLine

isLine: boolean = false

isPoint

isPoint: boolean = true

isSurface

isSurface: boolean = false

isText

isText: boolean = false

material

material: ShaderMaterial

parameterTypes

parameterTypes: object & object = PointBufferParameterTypes

parameters

Optional picking

picking: Picker

pickingGroup

pickingGroup: Group = new Group()

pickingMaterial

pickingMaterial: ShaderMaterial

pickingUniforms

pickingUniforms: Uniforms

tex

tex: DataTexture

uniforms

uniforms: Uniforms

vertexShader

vertexShader: string = "Point.vert"

visible

visible: boolean = true

Optional wireframeGeometry

wireframeGeometry: BufferGeometry

wireframeGroup

wireframeGroup: Group = new Group()

Optional wireframeIndex

wireframeIndex: Uint32Array | Uint16Array

wireframeIndexCount

wireframeIndexCount: number = 0

wireframeIndexVersion

wireframeIndexVersion: number = -1

wireframeMaterial

wireframeMaterial: ShaderMaterial

Accessors

attributeSize

  • get attributeSize(): number

defaultParameters

  • get defaultParameters(): object & object

matrix

  • get matrix(): Matrix4
  • set matrix(m: Matrix4): void

pickable

  • get pickable(): boolean

size

  • get size(): number

transparent

  • get transparent(): boolean

Methods

_getMesh

addAttributes

  • addAttributes(attributes: object): void

addUniforms

dispose

  • dispose(): void

getDefines

getFragmentShader

getMesh

  • getMesh(): LineSegments | Points | Mesh

getParameters

  • getParameters(): object
  • Returns object

    • background: boolean
    • clipCenter: Vector3
    • clipNear: number
    • clipRadius: number
    • depthWrite: boolean
    • diffuse: number
    • diffuseInterior: boolean
    • disablePicking: boolean
    • flatShaded: boolean
    • forceTransparent: boolean
    • interiorColor: number
    • interiorDarkening: number
    • matrix: Matrix4
    • metalness: number
    • opacity: number
    • opaqueBack: boolean
    • roughness: number
    • side: "double" | "front" | "back"
    • sortParticles: boolean
    • useInteriorColor: boolean
    • wireframe: boolean

getPickingMesh

  • getPickingMesh(): LineSegments | Points | Mesh

getRenderOrder

  • getRenderOrder(): number

getShader

getVertexShader

getWireframeMesh

  • getWireframeMesh(): LineSegments

initIndex

  • initIndex(index: Uint32Array | Uint16Array): void

makeMaterial

  • makeMaterial(): void

makeTexture

  • makeTexture(): void

makeWireframeGeometry

  • makeWireframeGeometry(): void

makeWireframeIndex

  • makeWireframeIndex(): void

setAttributes

  • setAttributes(data: any): void
  • Sets buffer attributes

    example

    var buffer = new Buffer(); buffer.setAttributes({ attrName: attrData });

    Parameters

    • data: any

      An object where the keys are the attribute names and the values are the attribute data.

    Returns void

setMatrix

  • setMatrix(m: Matrix4): void

setParameters

setProperties

  • setProperties(data: any): void

setUniforms

  • setUniforms(data: any): void

setVisibility

  • setVisibility(value: boolean): void

updateRenderOrder

  • updateRenderOrder(): void

updateShader

  • updateShader(): void

updateWireframeIndex

  • updateWireframeIndex(): void

Generated using TypeDoc