Skip to content

Class: PointMaterial

PointMaterial

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new PointMaterial()

Overrides

Material.constructor

Defined in

src/materials/PointMaterial.ts:19

Properties

name

name: string

name of this material

Inherited from

Material.name

Defined in

src/materials/Material.ts:11


instanceID

instanceID: string

Material Unique Identifier

Inherited from

Material.instanceID

Defined in

src/materials/Material.ts:17


enable

enable: boolean = true

Inherited from

Material.enable

Defined in

src/materials/Material.ts:19

Accessors

depthCompare

get depthCompare(): GPUCompareFunction

Returns

GPUCompareFunction

Inherited from

Material.depthCompare

Defined in

src/materials/Material.ts:31

set depthCompare(value): void

Parameters

NameType
valueGPUCompareFunction

Returns

void

Inherited from

Material.depthCompare

Defined in

src/materials/Material.ts:35


defaultPass

get defaultPass(): RenderShader

Returns

RenderShader

Inherited from

Material.defaultPass

Defined in

src/materials/Material.ts:40

set defaultPass(value): void

Parameters

NameType
valueRenderShader

Returns

void

Inherited from

Material.defaultPass

Defined in

src/materials/Material.ts:44


doubleSide

get doubleSide(): boolean

Returns

boolean

Inherited from

Material.doubleSide

Defined in

src/materials/Material.ts:49

set doubleSide(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Material.doubleSide

Defined in

src/materials/Material.ts:53


castShadow

get castShadow(): boolean

Returns

boolean

Inherited from

Material.castShadow

Defined in

src/materials/Material.ts:57

set castShadow(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Material.castShadow

Defined in

src/materials/Material.ts:62


blendMode

get blendMode(): BlendMode

Returns

BlendMode

Inherited from

Material.blendMode

Defined in

src/materials/Material.ts:67

set blendMode(value): void

Parameters

NameType
valueBlendMode

Returns

void

Inherited from

Material.blendMode

Defined in

src/materials/Material.ts:72


transparent

get transparent(): boolean

Returns

boolean

Inherited from

Material.transparent

Defined in

src/materials/Material.ts:78

set transparent(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Material.transparent

Defined in

src/materials/Material.ts:83


cullMode

get cullMode(): GPUCullMode

Returns

GPUCullMode

Inherited from

Material.cullMode

Defined in

src/materials/Material.ts:91

set cullMode(value): void

Parameters

NameType
valueGPUCullMode

Returns

void

Inherited from

Material.cullMode

Defined in

src/materials/Material.ts:96


baseMap

set baseMap(texture): void

set environment texture, usually referring to cubemap

Parameters

NameType
textureTexture

Returns

void

Defined in

src/materials/PointMaterial.ts:45


envMap

set envMap(texture): void

set environment texture, usually referring to cubemap

Parameters

NameType
textureTexture

Returns

void

Defined in

src/materials/PointMaterial.ts:53


shadowMap

set shadowMap(texture): void

set shadow map

Parameters

NameType
textureTexture

Returns

void

Defined in

src/materials/PointMaterial.ts:60

Methods

hasPass

hasPass(passType): boolean

Parameters

NameType
passTypeRendererType

Returns

boolean

Inherited from

Material.hasPass

Defined in

src/materials/Material.ts:105


getPass

getPass(passType): RenderShader[]

get render pass by renderType

Parameters

NameType
passTypeRendererType

Returns

RenderShader[]

Inherited from

Material.getPass

Defined in

src/materials/Material.ts:114


getAllPass

getAllPass(): RenderShader[]

get all color render pass

Returns

RenderShader[]

Inherited from

Material.getAllPass

Defined in

src/materials/Material.ts:122


addPass

addPass(passType, pass, index?): RenderShader[]

Parameters

NameTypeDefault value
passTypeRendererTypeundefined
passRenderShaderundefined
indexnumber-1

Returns

RenderShader[]

Inherited from

Material.addPass

Defined in

src/materials/Material.ts:126


removePass

removePass(passType, index): void

Parameters

NameType
passTypeRendererType
indexnumber

Returns

void

Inherited from

Material.removePass

Defined in

src/materials/Material.ts:145


clone

clone(): any

clone one material

Returns

any

Material

Inherited from

Material.clone

Defined in

src/materials/Material.ts:158


destroy

destroy(force): void

Parameters

NameType
forceboolean

Returns

void

Inherited from

Material.destroy

Defined in

src/materials/Material.ts:162


debug

debug(): void

Returns

void

Defined in

src/materials/PointMaterial.ts:64

Released under the MIT License