Class: ShaderMaterialEncodingSupport
Extra-Helpers.ShaderMaterialEncodingSupport
Hierarchy
↳
ShaderMaterialEncodingSupport
Properties
assetType
• assetType: "material"
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:28
materialObject
• materialObject: ShaderMaterialEncodingSupport
Inherited from
ShaderMaterial2.materialObject
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:29
materialExtensions
• materialExtensions: MaterialExtension
[] = []
Inherited from
ShaderMaterial2.materialExtensions
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:30
isRawShaderMaterial
• isRawShaderMaterial: boolean
= false
Inherited from
ShaderMaterial2.isRawShaderMaterial
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:31
extraUniformsToUpload
• extraUniformsToUpload: Record
<string
, IUniform
<any
>> = {}
Inherited from
ShaderMaterial2.extraUniformsToUpload
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:64
typeSlug
• Readonly
typeSlug: "shaderMat"
Overrides
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:105
textures
• textures: { colorSpace
: ColorSpace
; id
: string
}[] = []
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:107
Methods
registerMaterialExtensions
▸ registerMaterialExtensions(customMaterialExtensions
): void
Parameters
Name | Type |
---|---|
customMaterialExtensions | MaterialExtension [] |
Returns
void
Inherited from
ShaderMaterial2.registerMaterialExtensions
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:42
unregisterMaterialExtensions
▸ unregisterMaterialExtensions(customMaterialExtensions
): void
Parameters
Name | Type |
---|---|
customMaterialExtensions | MaterialExtension [] |
Returns
void
Inherited from
ShaderMaterial2.unregisterMaterialExtensions
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:46
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
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:72
setDirty
▸ setDirty(options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:82
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:92
fromJSON
▸ fromJSON(data
, meta?
): null
| ShaderMaterialEncodingSupport
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| ShaderMaterialEncodingSupport
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:95
copyProps
▸ copyProps(oldMaterial
): ShaderMaterialEncodingSupport
Parameters
Name | Type |
---|---|
oldMaterial | any |
Returns
Inherited from
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:98
setTextureIds
▸ setTextureIds(ids
): void
Parameters
Name | Type |
---|---|
ids | string [] |
Returns
void
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:114
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
ShaderMaterial2.onBeforeRender
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:132
onBeforeCompile
▸ onBeforeCompile(s
, renderer
): void
Parameters
Name | Type |
---|---|
s | Shader |
renderer | WebGLRenderer |
Returns
void
Overrides
ShaderMaterial2.onBeforeCompile
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:150
customProgramCacheKey
▸ customProgramCacheKey(): string
Returns
string
Overrides
ShaderMaterial2.customProgramCacheKey
Defined in
webgi/src/passes/threejs/ShaderPass2.ts:159
Constructors
constructor
• new ShaderMaterialEncodingSupport(parameters
, textureIds
)
Parameters
Name | Type |
---|---|
parameters | ShaderMaterialParameters |
textureIds | string [] |