computeBoneTexture method
Computes an instance of DataTexture in order to pass the bone data more efficiently to the shader. The texture is assigned to boneTexture.
Implementation
Skeleton computeBoneTexture() {
boneTexture = DataTexture(boneMatrices, boneTextureSize, boneTextureSize,
RGBAFormat, FloatType);
boneTexture!.name = "DataTexture from Skeleton.computeBoneTexture";
boneTexture!.needsUpdate = true;
// Android Float Texture need NearestFilter
boneTexture!.magFilter = NearestFilter;
boneTexture!.minFilter = NearestFilter;
return this;
}