diff --git a/src/fxaa.ts b/src/fxaa.ts index 24d461f..8c693cb 100644 --- a/src/fxaa.ts +++ b/src/fxaa.ts @@ -15,7 +15,7 @@ export class FXAASkinViewer extends SkinViewer { * Note: FXAA doesn't work well with transparent backgrounds. * It's recommended to use an opaque background and set `options.alpha` to false. */ - constructor(options: SkinViewerOptions = {}) { + constructor(options?: SkinViewerOptions) { super(options); this.composer = new EffectComposer(this.renderer); this.renderPass = new RenderPass(this.scene, this.camera); diff --git a/src/viewer.ts b/src/viewer.ts index 2595050..7fb353d 100644 --- a/src/viewer.ts +++ b/src/viewer.ts @@ -3,14 +3,14 @@ import { NearestFilter, PerspectiveCamera, Scene, Texture, Vector2, WebGLRendere import { RootAnimation } from "./animation.js"; import { PlayerObject } from "./model.js"; -export type LoadOptions = { +export interface LoadOptions { /** * Whether to make the object visible after the texture is loaded. Default is true. */ makeVisible?: boolean; } -export type SkinViewerOptions = { +export interface SkinViewerOptions { width?: number; height?: number; skin?: RemoteImage | TextureSource;