M3D / M3D / Render / JewelMaterial
Class: JewelMaterial
Memberof
M3D.Render
Description
珠宝材质
Author
ZYC
Date
2023-2-14
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
JewelMaterial
Table of contents
Constructors
Properties
Methods
- addUniformMap
- addUniformTextureMap
- clearUniformMap
- clone
- compare
- getAcceptLight
- getBackCubeTexture
- getBackTexture
- getCompare
- getDefine
- getDiffuse
- getDisplayName
- getEvents
- getFrontCubeTexture
- getFrontTexture
- getHighlightTexture
- getId
- getIsGammaOutpute
- getIsTemplateMat
- getKeepDirection
- getLightHash
- getMaterialType
- getMaterialTypeStr
- getMixFactor
- getName
- getNeedUpdate
- getUniformMap
- getUniformTextureMap
- getUseBackCubeTexture
- getUseBackTexture
- getUseFrontCubeTexture
- getUseFrontTexture
- getUseHighlightTexture
- getUseLight
- getUuid
- registerEvent
- removeEvent
- setAcceptLight
- setBackCubeTexture
- setBackTexture
- setDefine
- setDiffuse
- setDisplayName
- setFrontCubeTexture
- setFrontTexture
- setHighlightTexture
- setId
- setIsGammaOutpute
- setIsTemplateMat
- setKeepDirection
- setLightHash
- setMaterialType
- setMixFactor
- setName
- setNeedUpdate
- setUniformMap
- setUseBackCubeTexture
- setUseBackTexture
- setUseFrontCubeTexture
- setUseFrontTexture
- setUseHighlightTexture
- setUseLight
- setUuid
- updateUniformMap
Constructors
constructor
• new JewelMaterial(): JewelMaterial
Returns
Description
构造函数
Overrides
• new JewelMaterial(org
): JewelMaterial
Parameters
Name | Type |
---|---|
org | JewelMaterial |
Returns
Description
构造函数
Overrides
Properties
id
• id: number
Inherited from
instanceRednerMaterial
• instanceRednerMaterial: boolean
Inherited from
BaseMaterial.instanceRednerMaterial
count
▪ Static
count: number
Inherited from
Methods
addUniformMap
▸ addUniformMap(para
, uniformValue
): void
Parameters
Name | Type |
---|---|
para | ShaderParameter |
uniformValue | any |
Returns
void
Description
添加Uniform参数
Inherited from
addUniformTextureMap
▸ addUniformTextureMap(para
, obj
): void
Parameters
Name | Type |
---|---|
para | ShaderParameter |
obj | TextureObject |
Returns
void
Description
添加纹理Uniform参数
Inherited from
BaseMaterial.addUniformTextureMap
clearUniformMap
▸ clearUniformMap(): void
Returns
void
Description
清空材质UniformMap
Inherited from
clone
▸ clone(): JewelMaterial
Returns
Description
材质拷贝
Overrides
▸ clone(val
): any
Parameters
Name | Type |
---|---|
val | JewelMaterial |
Returns
any
Description
材质拷贝
Overrides
BaseMaterial.clone
compare
▸ compare(ptrMaterial
): boolean
Parameters
Name | Type |
---|---|
ptrMaterial | BaseMaterial |
Returns
boolean
Description
比较材质是否相等
Inherited from
getAcceptLight
▸ getAcceptLight(): boolean
Returns
boolean
Description
获取是否接收灯光配置
Inherited from
getBackCubeTexture
▸ getBackCubeTexture(): TextureObject
Returns
Description
获取backCubeTexture
getBackTexture
▸ getBackTexture(): TextureObject
Returns
Description
获取backTexture
getCompare
▸ getCompare(smaterial
): boolean
Parameters
Name | Type | Description |
---|---|---|
smaterial | BaseMaterial | 基础材质类 |
Returns
boolean
Description
获取基础材质类和本类一致性比较
Inherited from
getDefine
▸ getDefine(): Object
Returns
Object
Description
获取材质定义
Inherited from
getDiffuse
▸ getDiffuse(): Color
Returns
Description
获取diffusecolor
getDisplayName
▸ getDisplayName(): string
Returns
string
Inherited from
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
getFrontCubeTexture
▸ getFrontCubeTexture(): TextureObject
Returns
Description
获取frontCubeTexture
getFrontTexture
▸ getFrontTexture(): TextureObject
Returns
Description
获取frontTexture
getHighlightTexture
▸ getHighlightTexture(): TextureObject
Returns
Description
获取highlightTexture
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
getIsGammaOutpute
▸ getIsGammaOutpute(): boolean
Returns
boolean
Description
获取是否gamma空间输出
Inherited from
BaseMaterial.getIsGammaOutpute
getIsTemplateMat
▸ getIsTemplateMat(): boolean
Returns
boolean
是否为模板材质
Description
获取是否为模板材质
getKeepDirection
▸ getKeepDirection(): boolean
Returns
boolean
Description
获取是否keepDirection
getLightHash
▸ getLightHash(): string
Returns
string
Inherited from
getMaterialType
▸ getMaterialType(): MaterialType
Returns
Description
获取材质类型
Inherited from
getMaterialTypeStr
▸ getMaterialTypeStr(material
): string
Parameters
Name | Type | Description |
---|---|---|
material | MaterialType | 材质类型 |
Returns
string
Description
获取材质类型字符串
Inherited from
BaseMaterial.getMaterialTypeStr