Methods
getSourceId
- getSourceId(): string
Returns string
serialize
- serialize(): {
id: string;
options: {
fragmentSrc?: string;
frameHeight: number;
frameWidth: number;
textureHeight: number;
textureWidth: number;
uniforms?: Record<string, unknown>;
};
sourceId: string;
} Returns {
id: string;
options: {
fragmentSrc?: string;
frameHeight: number;
frameWidth: number;
textureHeight: number;
textureWidth: number;
uniforms?: Record<string, unknown>;
};
sourceId: string;
}
id: string
options: {
fragmentSrc?: string;
frameHeight: number;
frameWidth: number;
textureHeight: number;
textureWidth: number;
uniforms?: Record<string, unknown>;
}
Optional
fragmentSrc?: string
frameHeight: number
frameWidth: number
textureHeight: number
textureWidth: number
Optional
uniforms?: Record<string, unknown>
sourceId: string
update
- update(currentTime): void
Returns void
updateUniformsFromSprite
- updateUniformsFromSprite(sprite): void
Returns void