Class: InstancedSkinnedDepthMaterial
The depth an instanced, skinned body casts into the sun's cascades: the
same skinning, depth alone. With alphaCutMap (an atlas the mesh's uvs
address directly), empty texels cast nothing, so a cut-out fin shadows
as its outline rather than its bounding quad.
Hierarchy
-
NodeMaterial↳
InstancedSkinnedDepthMaterial
Constructors
constructor
• new InstancedSkinnedDepthMaterial(boneTexture, boneTextureWidth, _boneTextureHeight, alphaCutMap?): InstancedSkinnedDepthMaterial
Parameters
| Name | Type |
|---|---|
boneTexture | DataTexture |
boneTextureWidth | number |
_boneTextureHeight | number |
alphaCutMap? | Texture<unknown, TextureEventMap> |
Returns
Overrides
THREE.NodeMaterial.constructor
Properties
alphaCutMap
• Readonly alphaCutMap: Texture<unknown, TextureEventMap>
boneTexture
• boneTexture: DataTexture
boneTextureWidth
• boneTextureWidth: number
perDrawNode
• Readonly perDrawNode: ConstNode<"float", number> = perDrawInputs
Accessors
type
• get type(): string
Returns
string
Overrides
THREE.NodeMaterial.type
Methods
customProgramCacheKey
▸ customProgramCacheKey(): string
Returns
string
Overrides
THREE.NodeMaterial.customProgramCacheKey
setupPosition
▸ setupPosition(builder): AttributeNode<"vec3">
Parameters
| Name | Type |
|---|---|
builder | default |
Returns
AttributeNode<"vec3">
Overrides
THREE.NodeMaterial.setupPosition
updateBoneTexture
▸ updateBoneTexture(texture): void
Parameters
| Name | Type |
|---|---|
texture | DataTexture |
Returns
void