UNPKG

macaw-threejs

Version:

Macaw Three.js is ready to use library to connect Three.js with your project.<br/> Under the hood is a fully optimized, clean Three.js set up to make it easy to implement effects for images (future text, etc.). With effects out of the box, you don't even

21 lines (20 loc) 857 B
import type { Composer, Image } from "./controllers/Shader/Shader.types"; import type { Dimensions, SceneSettings } from "./Core/Scene/Scene.types"; import * as THREE from "three"; interface InitSceneProps { settings: SceneSettings; } export declare function initScene({ settings }: InitSceneProps): THREE.Scene; interface InitCameraProps { dimensions: Dimensions; } export declare function initCamera({ dimensions }: InitCameraProps): THREE.PerspectiveCamera; interface InitRendererProps { container: HTMLDivElement; settings: Required<SceneSettings>; } export declare function initRenderer({ container, settings }: InitRendererProps): THREE.WebGLRenderer; export declare function initRaycaster(): THREE.Raycaster; export declare function initImage(): Image; export declare function initComposer(): Composer; export {};