Type Alias TextureSheetAnimation

TextureSheetAnimation: {
    fps?: number;
    startFrame?: Constant | RandomBetweenTwoConstants;
    tiles?: THREE.Vector2;
    timeMode?: TimeMode;
}

Defines the texture sheet animation settings for particles. Allows configuring the animation frames, timing mode, frames per second, and the starting frame.

Type declaration

tiles: new THREE.Vector2(1.0, 1.0)
timeMode: TimeMode.LIFETIME
fps: 30.0
startFrame: 0
// Basic configuration with default values
textureSheetAnimation: {
tiles: new THREE.Vector2(1.0, 1.0),
timeMode: TimeMode.LIFETIME,
fps: 30.0,
startFrame: 0
};

// Custom configuration
textureSheetAnimation: {
tiles: new THREE.Vector2(4, 4), // 4x4 grid of animation tiles
timeMode: TimeMode.SPEED,
fps: 60.0,
startFrame: { min: 0, max: 15 } // Random start frame between 0 and 15
};