/** * @deprecated Use `Mesh.fromGeometry(device, new SphereGeometry(options))` instead. * @ignore */ export function createSphere(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new PlaneGeometry(options))` instead. * @ignore */ export function createPlane(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new BoxGeometry(options))` instead. * @ignore */ export function createBox(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new TorusGeometry(options))` instead. * @ignore */ export function createTorus(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new CapsuleGeometry(options))` instead. * @ignore */ export function createCapsule(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new ConeGeometry(options))` instead. * @ignore */ export function createCone(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new CylinderGeometry(options))` instead. * @ignore */ export function createCylinder(device: any, opts: any): Mesh; /** * @deprecated Use `Mesh.fromGeometry(device, new Geometry())` instead. * @ignore */ export function createMesh(device: any, positions: any, opts?: {}): Mesh; /** * @deprecated Use drawQuadWithShader instead. * @ignore */ export function drawFullscreenQuad(device: any, target: any, vertexBuffer: any, shader: any, rect: any): void; /** * @deprecated Use PIXELFORMAT_LA8 instead. * @ignore */ export const PIXELFORMAT_L8_A8: 2; /** * @deprecated Use PIXELFORMAT_RGB565 instead. * @ignore */ export const PIXELFORMAT_R5_G6_B5: 3; /** * @deprecated Use PIXELFORMAT_RGBA5551 instead. * @ignore */ export const PIXELFORMAT_R5_G5_B5_A1: 4; /** * @deprecated Use PIXELFORMAT_RGBA4 instead. * @ignore */ export const PIXELFORMAT_R4_G4_B4_A4: 5; /** * @deprecated Use PIXELFORMAT_RGB8 instead. * @ignore */ export const PIXELFORMAT_R8_G8_B8: 6; /** * @deprecated Use PIXELFORMAT_RGBA8 instead. * @ignore */ export const PIXELFORMAT_R8_G8_B8_A8: 7; /** * @deprecated Use PIXELFORMAT_SRGB8 instead. * @ignore */ export const PIXELFORMAT_SRGB: 19; /** * @deprecated Use PIXELFORMAT_SRGBA8 instead. * @ignore */ export const PIXELFORMAT_SRGBA: 20; /** * @deprecated Use PIXELFORMAT_RG11B10F instead. * @ignore */ export const PIXELFORMAT_111110F: 18; /** * @deprecated Use BLENDMODE_CONSTANT instead. * @ignore */ export const BLENDMODE_CONSTANT_COLOR: 11; /** * @deprecated Use BLENDMODE_ONE_MINUS_CONSTANT instead. * @ignore */ export const BLENDMODE_ONE_MINUS_CONSTANT_COLOR: 12; /** * @deprecated Use BLENDMODE_CONSTANT instead. * @ignore */ export const BLENDMODE_CONSTANT_ALPHA: 11; /** * @deprecated Use BLENDMODE_ONE_MINUS_CONSTANT instead. * @ignore */ export const BLENDMODE_ONE_MINUS_CONSTANT_ALPHA: 12; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_51: "1.51"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_55: "1.55"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_56: "1.56"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_57: "1.57"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_58: "1.58"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_60: "1.60"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_62: "1.62"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_65: "1.65"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_1_70: "1.70"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_2_1: "2.1"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_2_3: "2.3"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_2_5: "2.5"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_2_6: "2.6"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_2_7: "2.7"; /** * @deprecated Set ShaderChunks#version to a version string such as '2.8' instead. * @ignore */ export const CHUNKAPI_2_8: "2.8"; /** * @deprecated Use AnimationKey instead. * @ignore */ export const Key: typeof AnimationKey; /** * @deprecated Use AnimationNode instead. * @ignore */ export const Node: typeof AnimationNode; /** * @deprecated Use LitShaderOptions instead. * @ignore */ export const LitOptions: typeof LitShaderOptions; /** * @deprecated Use ShaderChunks.get to access the global shader chunks instead. * @ignore */ export const shaderChunks: {}; /** * @deprecated Use Keyboard.EVENT_KEYDOWN instead. * @ignore */ export const EVENT_KEYDOWN: "keydown"; /** * @deprecated Use Keyboard.EVENT_KEYUP instead. * @ignore */ export const EVENT_KEYUP: "keyup"; /** * @deprecated Use Mouse.EVENT_MOUSEDOWN instead. * @ignore */ export const EVENT_MOUSEDOWN: "mousedown"; /** * @deprecated Use Mouse.EVENT_MOUSEMOVE instead. * @ignore */ export const EVENT_MOUSEMOVE: "mousemove"; /** * @deprecated Use Mouse.EVENT_MOUSEUP instead. * @ignore */ export const EVENT_MOUSEUP: "mouseup"; /** * @deprecated Use Mouse.EVENT_MOUSEWHEEL instead. * @ignore */ export const EVENT_MOUSEWHEEL: "mousewheel"; /** * @deprecated Use TouchDevice.EVENT_TOUCHSTART instead. * @ignore */ export const EVENT_TOUCHSTART: "touchstart"; /** * @deprecated Use TouchDevice.EVENT_TOUCHEND instead. * @ignore */ export const EVENT_TOUCHEND: "touchend"; /** * @deprecated Use TouchDevice.EVENT_TOUCHMOVE instead. * @ignore */ export const EVENT_TOUCHMOVE: "touchmove"; /** * @deprecated Use TouchDevice.EVENT_TOUCHCANCEL instead. * @ignore */ export const EVENT_TOUCHCANCEL: "touchcancel"; /** * @deprecated Use GamePads.EVENT_GAMEPADCONNECTED instead. * @ignore */ export const EVENT_GAMEPADCONNECTED: "gamepadconnected"; /** * @deprecated Use GamePads.EVENT_GAMEPADDISCONNECTED instead. * @ignore */ export const EVENT_GAMEPADDISCONNECTED: "gamepaddisconnected"; /** * @deprecated Use XrInput.EVENT_SELECT instead. * @ignore */ export const EVENT_SELECT: "select"; /** * @deprecated Use XrInput.EVENT_SELECTSTART instead. * @ignore */ export const EVENT_SELECTSTART: "selectstart"; /** * @deprecated Use XrInput.EVENT_SELECTEND instead. * @ignore */ export const EVENT_SELECTEND: "selectend"; export const BODYFLAG_STATIC_OBJECT: 1; export const BODYFLAG_KINEMATIC_OBJECT: 2; export const BODYFLAG_NORESPONSE_OBJECT: 4; export const BODYSTATE_ACTIVE_TAG: 1; export const BODYSTATE_ISLAND_SLEEPING: 2; export const BODYSTATE_WANTS_DEACTIVATION: 3; export const BODYSTATE_DISABLE_DEACTIVATION: 4; export const BODYSTATE_DISABLE_SIMULATION: 5; /** * @deprecated Use BODYTYPE_STATIC instead. * @ignore */ export const RIGIDBODY_TYPE_STATIC: "static"; /** * @deprecated Use BODYTYPE_DYNAMIC instead. * @ignore */ export const RIGIDBODY_TYPE_DYNAMIC: "dynamic"; /** * @deprecated Use BODYTYPE_KINEMATIC instead. * @ignore */ export const RIGIDBODY_TYPE_KINEMATIC: "kinematic"; /** * @deprecated Use BODYFLAG_STATIC_OBJECT instead. * @ignore */ export const RIGIDBODY_CF_STATIC_OBJECT: 1; /** * @deprecated Use BODYFLAG_KINEMATIC_OBJECT instead. * @ignore */ export const RIGIDBODY_CF_KINEMATIC_OBJECT: 2; /** * @deprecated Use BODYFLAG_NORESPONSE_OBJECT instead. * @ignore */ export const RIGIDBODY_CF_NORESPONSE_OBJECT: 4; /** * @deprecated Use BODYSTATE_ACTIVE_TAG instead. * @ignore */ export const RIGIDBODY_ACTIVE_TAG: 1; /** * @deprecated Use BODYSTATE_ISLAND_SLEEPING instead. * @ignore */ export const RIGIDBODY_ISLAND_SLEEPING: 2; /** * @deprecated Use BODYSTATE_WANTS_DEACTIVATION instead. * @ignore */ export const RIGIDBODY_WANTS_DEACTIVATION: 3; /** * @deprecated Use BODYSTATE_DISABLE_DEACTIVATION instead. * @ignore */ export const RIGIDBODY_DISABLE_DEACTIVATION: 4; /** * @deprecated Use BODYSTATE_DISABLE_SIMULATION instead. * @ignore */ export const RIGIDBODY_DISABLE_SIMULATION: 5; import { Mesh } from '../scene/mesh.js'; import { AnimationKey } from '../scene/animation/animation.js'; import { AnimationNode } from '../scene/animation/animation.js'; import { LitShaderOptions } from '../scene/shader-lib/programs/lit-shader-options.js';