Skip to main content

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​

NameType
boneTextureDataTexture
boneTextureWidthnumber
_boneTextureHeightnumber
alphaCutMap?Texture<unknown, TextureEventMap>

Returns​

InstancedSkinnedDepthMaterial

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​

NameType
builderdefault

Returns​

AttributeNode<"vec3">

Overrides​

THREE.NodeMaterial.setupPosition


updateBoneTexture​

▸ updateBoneTexture(texture): void

Parameters​

NameType
textureDataTexture

Returns​

void