M3D / M3D / Render / DepthMaterial
Class: DepthMaterial
Memberof
M3D.Render
Description
深度纹理:用来生成深度贴图
Date
2022-1-17
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
DepthMaterial
Table of contents
Constructors
Properties
Methods
- addUniformMap
- addUniformTextureMap
- clearUniformMap
- clone
- compare
- getAcceptLight
- getCompare
- getDefine
- getDisplayName
- getEvents
- getId
- getIsGammaOutpute
- getLightHash
- getMaterialType
- getMaterialTypeStr
- getName
- getNeedUpdate
- getUniformMap
- getUniformTextureMap
- getUseLight
- getUuid
- getUvRotate
- getUvTransform
- registerEvent
- removeEvent
- setAcceptLight
- setDefine
- setDisplayName
- setId
- setIsGammaOutpute
- setLightHash
- setMaterialType
- setName
- setNeedUpdate
- setUniformMap
- setUseLight
- setUuid
- updateUniformMap
Constructors
constructor
• new DepthMaterial(): DepthMaterial
Returns
Description
构造函数
Overrides
• new DepthMaterial(org
): DepthMaterial
Parameters
Name | Type | Description |
---|---|---|
org | DepthMaterial | 原深度纹理 |
Returns
Description
构造函数
Overrides
Properties
id
• id: number
Inherited from
instanceRednerMaterial
• instanceRednerMaterial: boolean
Inherited from
InnerMaterial.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
InnerMaterial.addUniformTextureMap
clearUniformMap
▸ clearUniformMap(): void
Returns
void
Description
清空材质UniformMap
Inherited from
clone
▸ clone(): DepthMaterial
Returns
深度贴图
Description
材质克隆
Overrides
compare
▸ compare(smaterial
): boolean
Parameters
Name | Type | Description |
---|---|---|
smaterial | BaseMaterial | 内部材质基类对象 |
Returns
boolean
Description
材质对比
Inherited from
getAcceptLight
▸ getAcceptLight(): boolean
Returns
boolean
Description
获取是否接收灯光配置
Inherited from
getCompare
▸ getCompare(smaterial
): boolean