Skip to main content

Class: DiamondMaterial

Plugins.DiamondMaterial

Hierarchy

  • ShaderMaterial

    DiamondMaterial

Implements

Properties

TypeSlug

Static Readonly TypeSlug: "dmat"

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:27


TYPE

Static Readonly TYPE: "DiamondMaterial"

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:231


typeSlug

Readonly typeSlug: "dmat"

Implementation of

IMaterial.typeSlug

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:28


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:29


isDiamondMaterial

isDiamondMaterial: true

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:39


color

color: Color

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:42


envMapIntensity

envMapIntensity: number = 1.

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:45


dispersion

dispersion: number = 0.012

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:48


absorptionFactor

absorptionFactor: number = 1

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:51


refractiveIndex

refractiveIndex: number = 2.4

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:54


squashFactor

squashFactor: number = 0.98

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:56


geometryFactor

geometryFactor: number = 0.5

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:57


gammaFactor

gammaFactor: number = 1

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:58


boostFactors

boostFactors: Vector3

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:61


transmission

transmission: number = 0.

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:64


reflectivity

reflectivity: number = 0.5

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:67


rayBounces

rayBounces: number = 5

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:71


diamondOrientedEnvMap

diamondOrientedEnvMap: number = 0

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:75


normalsCaptureMap

normalsCaptureMap: null | Texture = null

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:77


extraUniformsToUpload

extraUniformsToUpload: Record<string, IUniform<any>>

Implementation of

IMaterial.extraUniformsToUpload

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:79

Accessors

mmMaterial

get mmMaterial(): this

Returns

this

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:30


materialObject

get materialObject(): this

Returns

this

Implementation of

IMaterial.materialObject

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:33


envMap

get envMap(): null | ITexture<any>

Returns

null | ITexture<any>

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:181

set envMap(value): void

Parameters

NameType
valuenull | ITexture<any>

Returns

void

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:169


uiConfig

get uiConfig(): UiObjectConfig<any>

Returns

UiObjectConfig<any>

Implementation of

IMaterial.uiConfig

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:233

Methods

onBeforeRender

onBeforeRender(renderer, scene, camera, geometry, object): void

Parameters

NameType
rendererWebGLRenderer
sceneScene
cameraCamera
geometryBufferGeometry
objectObject3D<Event>

Returns

void

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:87


clone

clone(): DiamondMaterial

Returns

DiamondMaterial

Implementation of

IMaterial.clone

Overrides

ShaderMaterial.clone

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:185


toJSON

toJSON(meta?): DiamondMaterialParameters

Parameters

NameType
meta?any

Returns

DiamondMaterialParameters

Implementation of

IMaterial.toJSON

Overrides

ShaderMaterial.toJSON

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:190


copyProps

copyProps(oldMaterial): DiamondMaterial

Parameters

NameType
oldMaterialDiamondMaterialParameters

Returns

DiamondMaterial

Implementation of

IMaterial.copyProps

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:301


fromJSON

fromJSON(data, meta?): null | DiamondMaterial

Parameters

NameType
dataany
meta?any

Returns

null | DiamondMaterial

Implementation of

IMaterial.fromJSON

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:320

Constructors

constructor

new DiamondMaterial(parameters)

Parameters

NameType
parametersDiamondMaterialParameters

Overrides

ShaderMaterial.constructor

Defined in

webgi/src/extras/ijewel/diamondMaterial.ts:116