Class: ShaderMaterial2
Extra-Helpers.ShaderMaterial2
Hierarchy
↳
ShaderMaterial2
Implements
Properties
assetType
• assetType: "material"
Implementation of
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:28
materialObject
• materialObject: ShaderMaterial2
Implementation of
Inherited from
AShaderMaterial2.materialObject
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:29
materialExtensions
• materialExtensions: MaterialExtension
[] = []
Implementation of
Inherited from
AShaderMaterial2.materialExtensions
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:30
isRawShaderMaterial
• isRawShaderMaterial: boolean
= false
Inherited from
AShaderMaterial2.isRawShaderMaterial
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:31
extraUniformsToUpload
• extraUniformsToUpload: Record
<string
, IUniform
<any
>> = {}
Implementation of
IMaterial.extraUniformsToUpload
Inherited from
AShaderMaterial2.extraUniformsToUpload
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:64
typeSlug
• Readonly
typeSlug: string
= 'shaderMat'
Implementation of
Overrides
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:90
Constructors
constructor
• new ShaderMaterial2(parameters?
, isRawShaderMaterial?
)
Parameters
Name | Type | Default value |
---|---|---|
parameters? | any | undefined |
isRawShaderMaterial | boolean | false |
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:33
Methods
registerMaterialExtensions
▸ registerMaterialExtensions(customMaterialExtensions
): void
Parameters
Name | Type |
---|---|
customMaterialExtensions | MaterialExtension [] |
Returns
void
Implementation of
IMaterial.registerMaterialExtensions
Inherited from
AShaderMaterial2.registerMaterialExtensions
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:42
unregisterMaterialExtensions
▸ unregisterMaterialExtensions(customMaterialExtensions
): void
Parameters
Name | Type |
---|---|
customMaterialExtensions | MaterialExtension [] |
Returns
void
Implementation of
IMaterial.unregisterMaterialExtensions
Inherited from
AShaderMaterial2.unregisterMaterialExtensions
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:46
onBeforeCompile
▸ onBeforeCompile(shader
, renderer
): void
Parameters
Name | Type |
---|---|
shader | Shader |
renderer | WebGLRenderer |
Returns
void
Inherited from
AShaderMaterial2.onBeforeCompile
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:50
customProgramCacheKey
▸ customProgramCacheKey(): string
Returns
string
Inherited from
AShaderMaterial2.customProgramCacheKey
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:60
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
Inherited from
AShaderMaterial2.onBeforeRender
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:66
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
Inherited from
AShaderMaterial2.onAfterRender
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:72
setDirty
▸ setDirty(options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void
Implementation of
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:82
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
IMaterial.toJSON
Overrides
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:92
fromJSON
▸ fromJSON(data
, meta?
): null
| ShaderMaterial2
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| ShaderMaterial2
Implementation of
IMaterial.fromJSON
Overrides
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:95
copyProps
▸ copyProps(oldMaterial
): ShaderMaterial2
Parameters
Name | Type |
---|---|
oldMaterial | any |