Class: MeshStandardMaterial2
Core-API.MeshStandardMaterial2
Hierarchy
MeshPhysicalMaterial
<Event
,"beforeCompile"
|"materialUpdate"
|"beforeRender"
|"afterRender"
>↳
MeshStandardMaterial2
Implements
Properties
TypeSlug
▪ Static
Readonly
TypeSlug: "pmat"
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:146
TYPE
▪ Static
Readonly
TYPE: "MeshStandardMaterial2"
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:147
materialExtensions
• materialExtensions: MaterialExtension
[]
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:145
typeSlug
• Readonly
typeSlug: "pmat"
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:148
assetType
• assetType: "material"
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:149
materialObject
• materialObject: MeshStandardMaterial2
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:150
isMeshStandardMaterial2
• isMeshStandardMaterial2: boolean
= true
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:152
extraUniformsToUpload
• extraUniformsToUpload: Record
<string
, IUniform
<any
>> = {}
Implementation of
IMaterial.extraUniformsToUpload
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:686
Constructors
constructor
• new MeshStandardMaterial2(parameters?
)
Parameters
Name | Type |
---|---|
parameters? | MeshPhysicalMaterialParameters & { customMaterialExtensions? : MaterialExtension [] } |
Overrides
MeshPhysicalMaterial<Event, 'beforeCompile'|'materialUpdate'|'beforeRender'|'afterRender'\>.constructor
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:153
Methods
setDirty
▸ setDirty(options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:167
registerMaterialExtensions
▸ registerMaterialExtensions(customMaterialExtensions
): void
Parameters
Name | Type |
---|---|
customMaterialExtensions | MaterialExtension [] |
Returns
void
Implementation of
IMaterial.registerMaterialExtensions
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:173
unregisterMaterialExtensions
▸ unregisterMaterialExtensions(customMaterialExtensions
): void
Parameters
Name | Type |
---|---|
customMaterialExtensions | MaterialExtension [] |
Returns
void
Implementation of
IMaterial.unregisterMaterialExtensions
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:176
onBeforeCompile
▸ onBeforeCompile(shader
, renderer
): void
Parameters
Name | Type |
---|---|
shader | Shader |
renderer | WebGLRenderer |
Returns
void
Overrides
MeshPhysicalMaterial.onBeforeCompile
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:659
customProgramCacheKey
▸ customProgramCacheKey(): string
Returns
string
Overrides
MeshPhysicalMaterial.customProgramCacheKey
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:682
onBeforeRender
▸ onBeforeRender(renderer
, scene
, camera
, geometry
, object
): void
Parameters
Name | Type |
---|---|
renderer | WebGLRenderer |
scene | Scene <Event , string > |
camera | Camera <Event , string > |
geometry | BufferGeometry <NormalBufferAttributes , Event , string > |
object | Object3D <Event , string > |
Returns
void
Overrides
MeshPhysicalMaterial.onBeforeRender
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:688
onAfterRender
▸ onAfterRender(renderer
, scene
, camera
, geometry
, object
): void
Parameters
Name | Type |
---|---|
renderer | WebGLRenderer |
scene | Scene <Event , string > |
camera | Camera <Event , string > |
geometry | BufferGeometry <NormalBufferAttributes , Event , string > |
object | Object3D <Event , string > |
Returns
void
Overrides
MeshPhysicalMaterial.onAfterRender
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:718
copyProps
▸ copyProps(oldMaterial
, allowUnknownType?
, clearCurrentUserData?
): MeshStandardMaterial2
Parameters
Name | Type | Default value |
---|---|---|
oldMaterial | Material <Event , string > | undefined |
allowUnknownType | boolean | false |
clearCurrentUserData | boolean | true |
Returns
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:729
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
IMaterial.toJSON
Overrides
MeshPhysicalMaterial.toJSON
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:762
fromJSON
▸ fromJSON(data
, meta?
, allowUnknownType?
): null
| MeshStandardMaterial2
Parameters
Name | Type | Default value |
---|---|---|
data | any | undefined |
meta? | any | undefined |
allowUnknownType | boolean | false |
Returns
null
| MeshStandardMaterial2
Implementation of
IMaterial.fromJSON
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:786
clone
▸ clone(): MeshStandardMaterial2
Returns
Implementation of
Overrides
MeshPhysicalMaterial.clone
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:794
Accessors
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Defined in
webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:183