Members
(constant) ABSOLUTE_URL_REGEX :RegExp
Regex used to detect absolute URLs.
Type:
- RegExp
- Source:
(constant) ACTIONS :Object
Key action registry.
Type:
- Object
- Source:
(constant) ACTION_BACKWARD :string
Key action: move backward.
Type:
- string
- Source:
(constant) ACTION_FORWARD :string
Key action: move forward.
Type:
- string
- Source:
(constant) ACTION_JUMP :string
Key action: jump (space).
Type:
- string
- Source:
(constant) ACTION_LEFT :string
Key action: move left.
Type:
- string
- Source:
(constant) ACTION_RIGHT :string
Key action: move right.
Type:
- string
- Source:
(constant) ACTION_RUN :string
Key action: run (left shift).
Type:
- string
- Source:
(constant) AMBIENT_COLOR_EPSILON :number
Epsilon used, when checking for near-zero ambient colors.
Type:
- number
(constant) ARIA_LIVE_POLITE :string
Attribute value used to announce updates politely.
Type:
- string
- Source:
(constant) ARIA_ROLE_STATUS :string
Role attribute value for the root element.
Type:
- string
- Source:
(constant) ARROW_COLOR :Float32Array
Arrow color (RGB).
Type:
- Float32Array
- Source:
(constant) ARROW_HEAD_HALF_WIDTH :number
Arrow head half-width.
Type:
- number
- Source:
(constant) ARROW_HEAD_LENGTH :number
Arrow head length.
Type:
- number
- Source:
(constant) ARROW_LENGTH :number
Direction arrow length.
Type:
- number
- Source:
(constant) AXIS_ACTIVE_OPACITY :number
Opacity, used for active axes.
Type:
- number
- Source:
(constant) AXIS_DIR_X :Array.<number>
Unit direction for X axis.
Type:
- Array.<number>
- Source:
(constant) AXIS_DIR_Y :Array.<number>
Unit direction for Y axis.
Type:
- Array.<number>
- Source:
(constant) AXIS_DIR_Z :Array.<number>
Unit direction for Z axis.
Type:
- Array.<number>
- Source:
(constant) AXIS_HEAD_HALF_WIDTH :number
Axis arrow head half-width.
Type:
- number
- Source:
(constant) AXIS_HEAD_LENGTH :number
Axis arrow head length.
Type:
- number
- Source:
(constant) AXIS_HEAD_ORTHO_X :Array.<number>
Ortho direction for X axis arrow head (drawn in XY plane).
Type:
- Array.<number>
- Source:
(constant) AXIS_HEAD_ORTHO_Y :Array.<number>
Ortho direction for Y axis arrow head (drawn in XY plane).
Type:
- Array.<number>
- Source:
(constant) AXIS_HEAD_ORTHO_Z :Array.<number>
Ortho direction for Z axis arrow head (drawn in XZ plane).
Type:
- Array.<number>
- Source:
(constant) AXIS_HIDDEN_OPACITY_WHEN_ACTIVE :number
Opacity, used to fully hide axes while another axis is active.
Type:
- number
- Source:
(constant) AXIS_HOVER_OPACITY :number
Opacity, used for hovered axes.
Type:
- number
- Source:
(constant) AXIS_IDLE_OPACITY :number
Opacity, used for idle axes.
Type:
- number
- Source:
(constant) AXIS_INACTIVE_OPACITY :number
Opacity, used for inactive axes when hover/active is set.
Type:
- number
- Source:
(constant) AXIS_LENGTH :number
Axis length for the gizmo.
Type:
- number
- Source:
(constant) AXIS_PICK_CENTER_DIVISOR :number
Divider used to place pick volumes in the middle of the axis.
Type:
- number
- Source:
(constant) AXIS_PICK_LENGTH :number
Axis pick volume length.
Type:
- number
- Source:
(constant) AXIS_PICK_THICKNESS :number
Axis pick volume thickness.
Type:
- number
- Source:
(constant) AXIS_X :string
Axis identifier for X.
Type:
- string
- Source:
(constant) AXIS_X_COLOR :Float32Array
X axis color (RGB).
Type:
- Float32Array
- Source:
(constant) AXIS_Y :string
Axis identifier for Y.
Type:
- string
- Source:
(constant) AXIS_Y_COLOR :Float32Array
Y axis color (RGB).
Type:
- Float32Array
- Source:
(constant) AXIS_Z :string
Axis identifier for Z.
Type:
- string
- Source:
(constant) AXIS_Z_COLOR :Float32Array
Z axis color (RGB).
Type:
- Float32Array
- Source:
(constant) BACKSLASH_REGEX :RegExp
Backslash regex for the separator normalization.
Type:
- RegExp
(constant) BACKSLASH_REGEX :RegExp
Matches backslash characters in paths.
Type:
- RegExp
- Source:
(constant) BACKSLASH_SEPARATOR :string
Backslash path separator.
Type:
- string
- Source:
(constant) BASE_PATH_SLICE_OFFSET :number
Offset used, when slicing to a base URL.
Type:
- number
(constant) CACHE_KEY_SEPARATOR :string
Separator used to build cache keys.
Type:
- string
(constant) CARRIAGE_RETURN_REGEX :RegExp
Carriage return regex for sanitizing the material names.
Type:
- RegExp
(constant) CENTER_SPHERE_COLOR :Float32Array
Center sphere color (RGB).
Type:
- Float32Array
- Source:
(constant) CENTER_SPHERE_DIAMETER :number
Center sphere diameter.
Type:
- number
- Source:
(constant) CENTER_SPHERE_DIAMETER_MULTIPLIER :number
Multiplier, used to convert radius to diameter.
Type:
- number
- Source:
(constant) CENTER_SPHERE_HEIGHT_SEGMENTS :number
Center sphere latitudinal segment count.
Type:
- number
- Source:
(constant) CENTER_SPHERE_OPACITY :number
Center sphere opacity, when visible.
Type:
- number
- Source:
(constant) CENTER_SPHERE_RADIUS :number
Center sphere radius.
Type:
- number
- Source:
(constant) CENTER_SPHERE_WIDTH_SEGMENTS :number
Center sphere longitudinal segment count.
Type:
- number
- Source:
(constant) CHUNK_KEY_SEPARATOR :string
Separator for the material chunk keys.
Type:
- string
- Source:
(constant) CLAMP_OFF_NUMERIC_TOKEN :string
Token for numeric value `0`.
Type:
- string
- Source:
(constant) CLAMP_OFF_TOKEN :string
Token, representing the `off` value in map options.
Type:
- string
- Source:
(constant) CLAMP_ON_NUMERIC_TOKEN :string
Token for numeric value `1`.
Type:
- string
- Source:
(constant) CLAMP_ON_TOKEN :string
Token, representing the `on` value in map options.
Type:
- string
- Source:
(constant) CLIP_W :number
Clip-space `W component` for unprojection.
Type:
- number
- Source:
(constant) COLOR_COMPONENT_COUNT :number
Number of components for the RGB-color.
Type:
- number
- Source:
(constant) COLOR_COMPONENT_COUNT :number
Number of components for RGB color.
Type:
- number
(constant) COLOR_COMPONENT_COUNT :number
Number of components for RGB color.
Type:
- number
(constant) COLOR_COMPONENT_COUNT :number
Number of components for RGB color.
Type:
- number
(constant) COLOR_COMPONENT_COUNT :number
Number of components for RGB color.
Type:
- number
- Source:
(constant) COLOR_START_INDEX :number
Start index for vertex color components in `v` lines.
Type:
- number
- Source:
(constant) COMMENT_TOKEN :string
Token, that starts a comment line in MTL files.
Type:
- string
- Source:
(constant) COMMENT_TOKEN :string
Token, that starts a comment line in OBJ files.
Type:
- string
- Source:
(constant) COMPONENT_INDEX_X :number
Index positions used in float triplets (X).
Type:
- number
(constant) COMPONENT_INDEX_Y :number
Index positions used in float triplets (Y).
Type:
- number
(constant) COMPONENT_INDEX_Z :number
Index positions used in float triplets (Z).
Type:
- number
(constant) COMPONENT_X :string
Component key for X.
Type:
- string
- Source:
(constant) COMPONENT_Y :string
Component key for Y.
Type:
- string
- Source:
(constant) COMPONENT_Z :string
Component key for Z.
Type:
- string
- Source:
(constant) DECIMAL_RADIX :number
Decimal radix for integer parsing.
Type:
- number
- Source:
(constant) DECIMAL_RADIX :number
Decimal radix for integer parsing.
Type:
- number
- Source:
(constant) DEFAULT_AMBIENT_COLOR :Float32Array
Default ambient color for materials.
Type:
- Float32Array
- Source:
(constant) DEFAULT_AMBIENT_STRENGTH :number
Default ambient strength for MTL materials.
Type:
- number
(constant) DEFAULT_ASPECT_RATIO :number
Default viewport aspect ratio.
Type:
- number
- Source:
(constant) DEFAULT_ASPECT_RATIO :number
Default viewport aspect ratio.
Type:
- number
- Source:
(constant) DEFAULT_AZIMUTH_RADIANS :number
Default camera azimuth (yaw) in radians.
Type:
- number
- Source:
(constant) DEFAULT_AZIMUTH_RADIANS :number
Default azimuth (yaw) angle in radians.
Type:
- number
- Source:
(constant) DEFAULT_BASE_URL :string
Default base URL, used for resolving relative assets.
Type:
- string
- Source:
(constant) DEFAULT_BOBBING_AMPLITUDE_RUN :number
Default running bobbing height.
Type:
- number
- Source:
(constant) DEFAULT_BOBBING_AMPLITUDE_WALK :number
Default walking bobbing height.
Type:
- number
- Source:
(constant) DEFAULT_BOBBING_FREQUENCY_RUN :number
Default running bobbing speed (radians per second).
Type:
- number
- Source:
(constant) DEFAULT_BOBBING_FREQUENCY_WALK :number
Default walking bobbing speed (radians per second).
Type:
- number
- Source:
(constant) DEFAULT_BOBBING_PITCH_AMPLITUDE_RADIANS :number
Default bobbing pitch amplitude in radians.
Type:
- number
- Source:
(constant) DEFAULT_BUMP_MULTIPLIER :number
Default bump multiplier value.
Type:
- number
- Source:
(constant) DEFAULT_CAMERA_ROLL_RADIANS :number
Default camera roll in radians.
Type:
- number
- Source:
(constant) DEFAULT_CAMERA_ROLL_RADIANS :number
Default roll (Z rotation).
Type:
- number
- Source:
(constant) DEFAULT_CAMERA_ROLL_RADIANS :number
Default camera roll in radians.
Type:
- number
- Source:
(constant) DEFAULT_CONTROLS_NAME :string
Default controls class name.
Type:
- string
- Source:
(constant) DEFAULT_CONTROLS_NAME :string
Default controls class name.
Type:
- string
- Source:
(constant) DEFAULT_DIFFUSE_COLOR :Float32Array
Default diffuse color for materials (white).
Type:
- Float32Array
- Source:
(constant) DEFAULT_DIFFUSE_COLOR :Float32Array
Default diffuse color for materials (white color).
Type:
- Float32Array
(constant) DEFAULT_DIFFUSE_COLOR :Float32Array
Default diffuse color for materials (white).
Type:
- Float32Array
- Source:
(constant) DEFAULT_DISTANCE :number
Default orbit distance from the target.
Type:
- number
- Source:
(constant) DEFAULT_DISTANCE :number
Default camera follow distance.
Type:
- number
- Source:
(constant) DEFAULT_EMISSIVE_COLOR :Float32Array
Default emissive color for materials.
Type:
- Float32Array
- Source:
(constant) DEFAULT_EPSILON :number
Default epsilon for approximate comparisons.
Type:
- number
- Source:
(constant) DEFAULT_EYE_HEIGHT :number
Default eye height above the target for first-person camera.
Type:
- number
- Source:
(constant) DEFAULT_FAR :number
Default far clipping plane distance.
Type:
- number
- Source:
(constant) DEFAULT_FAR :number
Default far clipping plane distance.
Type:
- number
- Source:
(constant) DEFAULT_FIELD_OF_VIEW_DIVISOR :number
Default camera field of view divisor used for computing FOV in radians.
Type:
- number
- Source:
(constant) DEFAULT_FIELD_OF_VIEW_DIVISOR :number
Default camera field of view divisor used for computing FOV in radians.
Type:
- number
- Source:
(constant) DEFAULT_FIELD_OF_VIEW_RADIANS :number
Default camera field of view in radians.
Type:
- number
- Source:
(constant) DEFAULT_FIELD_OF_VIEW_RADIANS :number
Default camera field of view in radians.
Type:
- number
- Source:
(constant) DEFAULT_FILTER :null
Default filter value.
Type:
- null
- Source:
(constant) DEFAULT_FIRST_PERSON_MAX_POLAR_RADIANS :number
Default maximum pitch angle in radians for first-person view.
Type:
- number
- Source:
(constant) DEFAULT_FIRST_PERSON_MIN_POLAR_RADIANS :number
Default minimum pitch angle in radians for first-person view.
Type:
- number
- Source:
(constant) DEFAULT_FIRST_PERSON_POLAR_RADIANS :number
Default camera polar (pitch) in radians for first-person view.
Type:
- number
- Source:
(constant) DEFAULT_GOOD_FPS_THRESHOLD :number
Default FPS threshold considered `good`.
Type:
- number
- Source:
(constant) DEFAULT_GRAVITY_ACCELERATION :number
Default gravity acceleration magnitude (positive value).
Type:
- number
- Source:
(constant) DEFAULT_GROUND_Y :number
Default ground Y position for movement and jumping.
Type:
- number
- Source:
(constant) DEFAULT_GROUP_NAME :string
Default group name used, when OBJ has no `g` statement.
Type:
- string
- Source:
(constant) DEFAULT_JUMP_SPEED :number
Default jump speed (vertical velocity).
Type:
- number
- Source:
(constant) DEFAULT_LABEL :string
Default label used by the counter header.
Type:
- string
- Source:
(constant) DEFAULT_MAP_CLAMP :boolean
Default clamp flag for the texture maps.
Type:
- boolean
- Source:
(constant) DEFAULT_MAP_OFFSET :Float32Array
Default offset for the texture map options.
Type:
- Float32Array
- Source:
(constant) DEFAULT_MAP_SCALE :Float32Array
Default scale for the texture map options.
Type:
- Float32Array
- Source:
(constant) DEFAULT_MATERIAL_NAME :string
Default material name used, when OBJ has no `usemtl` statement.
Type:
- string
- Source:
(constant) DEFAULT_MAX_DISTANCE :number
Default maximum orbit distance.
Type:
- number
- Source:
(constant) DEFAULT_MAX_POLAR_RADIANS :number
Default maximum pitch angle in radians.
Type:
- number
- Source:
(constant) DEFAULT_MAX_POLAR_RADIANS :number
Maximum allowed polar angle (pitch) in radians.
This avoids reaching `+/-` 90 degrees, where the controls become unstable.
Type:
- number
- Source:
(constant) DEFAULT_MIN_DISTANCE :number
Default minimum orbit distance.
Type:
- number
- Source:
(constant) DEFAULT_MIN_POLAR_RADIANS :number
Default minimum pitch angle in radians.
Type:
- number
- Source:
(constant) DEFAULT_MIN_POLAR_RADIANS :number
Minimum allowed polar angle (pitch) in radians.
This avoids reaching `+/- 90` degrees, where the controls become unstable.
Type:
- number
- Source:
(constant) DEFAULT_MOVE_SPEED :number
Default walking speed in world units per second.
Type:
- number
- Source:
(constant) DEFAULT_NEAR :number
Default near clipping plane distance.
Type:
- number
- Source:
(constant) DEFAULT_NEAR :number
Default near clipping plane distance.
Type:
- number
- Source:
(constant) DEFAULT_NORMAL :Array.<number>
Default normal vector used as placeholder.
Type:
- Array.<number>
(constant) DEFAULT_OBJECT_NAME :string
Default object name used, when OBJ has no `o` statement.
Type:
- string
- Source:
(constant) DEFAULT_OK_FPS_THRESHOLD :number
Default FPS threshold considered `ok`.
Type:
- number
- Source:
(constant) DEFAULT_OPACITY :number
Default opacity for materials.
Type:
- number
- Source:
(constant) DEFAULT_OPACITY :number
Default opacity for materials.
Type:
- number
(constant) DEFAULT_OPACITY :number
Default opacity for materials.
Type:
- number
- Source:
(constant) DEFAULT_OPTICAL_DENSITY :number
Default optical density value.
Type:
- number
(constant) DEFAULT_POLAR_RADIANS :number
Default camera polar (pitch) in radians.
Type:
- number
- Source:
(constant) DEFAULT_POLAR_RADIANS :number
Default polar (pitch) angle in radians.
Type:
- number
- Source:
(constant) DEFAULT_RECURSIVE :boolean
Base value for boolean defaults.
Type:
- boolean
- Source:
(constant) DEFAULT_ROTATION_ENABLED :boolean
Default rotation enabled state.
Type:
- boolean
- Source:
(constant) DEFAULT_ROTATION_SPEED :number
Default rotation speed multiplier.
Type:
- number
- Source:
(constant) DEFAULT_ROTATION_SPEED :number
Default rotation speed multiplier.
Type:
- number
- Source:
(constant) DEFAULT_RUN_SPEED_MULTIPLIER :number
Default running speed multiplier.
Type:
- number
- Source:
(constant) DEFAULT_SHININESS :number
Default shininess, when `Ns` is missing.
Type:
- number
(constant) DEFAULT_SHOW_FRAME_TIME :boolean
Default flag that enables frame time (ms) display.
Type:
- boolean
- Source:
(constant) DEFAULT_SMOOTHING_FACTOR :number
Default exponential smoothing factor.
Type:
- number
- Source:
(constant) DEFAULT_SMOOTHING_GROUP :number
Default smoothing group value for `s off`.
Type:
- number
- Source:
(constant) DEFAULT_SORT :boolean
Default sorting flag for raycast results.
Type:
- boolean
- Source:
(constant) DEFAULT_SPECULAR_COLOR :Float32Array
Default specular color for materials.
Type:
- Float32Array
- Source:
(constant) DEFAULT_SPECULAR_STRENGTH :number
Default specular strength multiplier.
Type:
- number
(constant) DEFAULT_TARGET_HEIGHT :number
Default camera look-at height offset from the target.
Type:
- number
- Source:
(constant) DEFAULT_TARGET_X :number
Default target X component.
Type:
- number
- Source:
(constant) DEFAULT_TARGET_Y :number
Default target Y component.
Type:
- number
- Source:
(constant) DEFAULT_TARGET_Z :number
Default target Z component.
Type:
- number
- Source:
(constant) DEFAULT_TEXTURE_UNIT_INDEX :number
Default texture unit index.
Type:
- number
(constant) DEFAULT_TEXTURE_UNIT_INDEX :number
Default texture unit index.
Type:
- number
- Source:
(constant) DEFAULT_UPDATE_INTERVAL_MS :number
Default DOM update interval in milliseconds.
Type:
- number
- Source:
(constant) DEFAULT_UV :Array.<number>
Default UV coordinates, when missing in OBJ data.
Type:
- Array.<number>
(constant) DEFAULT_VERTEX_COLOR :Array.<number>
Default vertex color (white color).
Type:
- Array.<number>
- Source:
(constant) DEFAULT_VISIBLE :boolean
Default visibility state.
Type:
- boolean
- Source:
(constant) DEFAULT_VISIBLE :boolean
Default visibility state.
Type:
- boolean
- Source:
(constant) DEFAULT_ZOOM_SPEED :number
Default zoom speed multiplier.
Type:
- number
- Source:
(constant) DIV_TAG_NAME :string
DOM element tag name used by the counter.
Type:
- string
- Source:
(constant) DOT_SLASH_PREFIX :string
Prefix used for relative paths.
Type:
- string
- Source:
(constant) EMPTY_STRING :string
Empty string constant.
Type:
- string
(constant) EMPTY_STRING :string
Empty string constant.
Type:
- string
- Source:
(constant) EMPTY_STRING :string
Empty string constant.
Type:
- string
- Source:
(constant) EMPTY_STRING :string
Empty string constant.
Type:
- string
- Source:
(constant) EMPTY_STRING_LENGTH :number
Empty string length used for non-empty checks.
Type:
- number
- Source:
(constant) ENTRY_TYPE_LINE :string
Geometry entry type for lines.
Type:
- string
(constant) ENTRY_TYPE_LINE :string
Entry type for line geometry.
Type:
- string
(constant) ENTRY_TYPE_MESH :string
Geometry entry type for meshes.
Type:
- string
(constant) ENTRY_TYPE_MESH :string
Entry type for mesh geometry.
Type:
- string
(constant) ENTRY_TYPE_POINTS :string
Geometry entry type for points.
Type:
- string
(constant) ENTRY_TYPE_POINTS :string
Entry type for point geometry.
Type:
- string
(constant) ERROR_ASSET_URL_MAP_TYPE :string
Error message for invalid assetUrlMap.
Type:
- string
(constant) ERROR_AXIS_MESH_TYPE :string
Error message for invalid mesh values.
Type:
- string
- Source:
(constant) ERROR_AXIS_TYPE :string
Error message for invalid axis values.
Type:
- string
- Source:
(constant) ERROR_BASE_URL_TYPE :string
Error message for invalid baseUrl.
Type:
- string
(constant) ERROR_CAMERA_TYPE :string
Error message: invalid camera.
Type:
- string
- Source:
(constant) ERROR_CLAMP_OPTION_TYPE :string
Error message for invalid clamp option.
Type:
- string
(constant) ERROR_DEFAULT_COLOR_LENGTH :string
Error message for invalid default color length.
Type:
- string
(constant) ERROR_DEFAULT_COLOR_LENGTH :string
Error message for invalid default color length.
Type:
- string
(constant) ERROR_DEFAULT_COLOR_TYPE :string
Error message for invalid default color.
Type:
- string
(constant) ERROR_DEFAULT_COLOR_TYPE :string
Error message for invalid default color type.
Type:
- string
(constant) ERROR_FETCH_FAILED_PREFIX :string
Error message, when fetch fails.
Type:
- string
(constant) ERROR_FILES_BASE_URL_TYPE :string
Error message for invalid baseUrl in files loader.
Type:
- string
(constant) ERROR_FILES_TEXTURE_BASE_URL_TYPE :string
Error message for invalid textureBaseUrl in files loader.
Type:
- string
(constant) ERROR_HOVER_AXIS_TYPE :string
Error message for invalid hovered axis values.
Type:
- string
- Source:
(constant) ERROR_LIGHT_TYPE :string
Error message for the invalid light.
Type:
- string
- Source:
(constant) ERROR_LOAD_OPTIONS_TYPE :string
Error message for invalid load options object.
Type:
- string
(constant) ERROR_MATERIAL_NAME_TYPE :string
Error message for invalid material name input.
Type:
- string
(constant) ERROR_MISSING_POSITION_INDEX :string
Error message, when a face vertex is missing the position index.
Type:
- string
- Source:
(constant) ERROR_MOUSE_NDC_TYPE :string
Error message: invalid mouse ndc object.
Type:
- string
- Source:
(constant) ERROR_MTL_FILES_TYPE :string
Error message for invalid mtlFiles.
Type:
- string
(constant) ERROR_MTL_TEXT_TYPE :string
Error message for invalid MTL text input.
Type:
- string
- Source:
(constant) ERROR_MTL_URL_TYPE :string
Error message for invalid mtlUrl.
Type:
- string
(constant) ERROR_OBJ_FILE_TYPE :string
Error message for invalid objFile.
Type:
- string
(constant) ERROR_OBJ_TEXT_TYPE :string
Error message for invalid OBJ text input.
Type:
- string
- Source:
(constant) ERROR_OBJ_URL_TYPE :string
Error message for invalid objUrl.
Type:
- string
(constant) ERROR_OPTIONS_TYPE :string
Error message for invalid options object.
Type:
- string
- Source:
(constant) ERROR_OPTIONS_TYPE :string
Error message: invalid options object.
Type:
- string
- Source:
(constant) ERROR_OPTIONS_TYPE :string
Error message for invalid texture options.
Type:
- string
(constant) ERROR_OPTIONS_TYPE :string
Error message for invalid options.
Type:
- string
(constant) ERROR_OPTIONS_TYPE :string
Error message for invalid options object.
Type:
- string
(constant) ERROR_OPTION_FILTER_TYPE :string
Error message: invalid filter option.
Type:
- string
- Source:
(constant) ERROR_OPTION_RECURSIVE_TYPE :string
Error message: invalid recursive option.
Type:
- string
- Source:
(constant) ERROR_OPTION_SORT_TYPE :string
Error message: invalid sort option.
Type:
- string
- Source:
(constant) ERROR_OUTPUT_LIST_TYPE :string
Error message for invalid output list.
Type:
- string
(constant) ERROR_PARSED_DATA_TYPE :string
Error message for invalid parsed data.
Type:
- string
(constant) ERROR_ROTATION_ENABLED_TYPE :string
Error message for invalid rotation enabled values.
Type:
- string
- Source:
(constant) ERROR_SCENE_TYPE :string
Error message: invalid scene.
Type:
- string
- Source:
(constant) ERROR_TARGET_TYPE :string
Error message for invalid target object.
Type:
- string
- Source:
(constant) ERROR_TEXTURES_OUTPUT_TYPE :string
Error message for invalid textures output.
Type:
- string
(constant) ERROR_TEXTURE_BASE_URL_TYPE :string
Error message for invalid texture base URL.
Type:
- string
(constant) ERROR_TEXTURE_CACHE_TYPE :string
Error message for invalid texture cache.
Type:
- string
(constant) ERROR_TEXTURE_UNITS_LIMIT :string
Error message for insufficient texture units.
Type:
- string
(constant) ERROR_TEXTURE_UNIT_INDEX_TYPE :string
Error message for invalid texture unit index.
Type:
- string
(constant) ERROR_TEXTURE_UNIT_INDEX_TYPE :string
Error message for invalid texture unit index.
Type:
- string
(constant) ERROR_TEXTURE_URL_TYPE :string
Error message for invalid texture URL.
Type:
- string
(constant) ERROR_UNPROJECT_W_ZERO :string
Error message: invalid unproject W component.
Type:
- string
- Source:
(constant) ERROR_VISIBLE_TYPE :string
Error message for the invalid visibility values.
Type:
- string
- Source:
(constant) ERROR_VISIBLE_TYPE :string
Error message for invalid visibility values.
Type:
- string
- Source:
(constant) ERROR_WEBGL_CONTEXT_TYPE :string
Error message for the invalid WebGL2 context.
Type:
- string
- Source:
(constant) ERROR_WEBGL_CONTEXT_TYPE :string
Error message for invalid WebGL2 context.
Type:
- string
- Source:
(constant) ERROR_WEBGL_CONTEXT_TYPE :string
Error message for invalid WebGL context.
Type:
- string
(constant) ERROR_WEBGL_CONTEXT_TYPE :string
Error message for invalid WebGL context.
Type:
- string
(constant) ERROR_WEBGL_CONTEXT_TYPE :string
Error message for invalid WebGL context.
Type:
- string
(constant) ERROR_WEBGL_CONTEXT_TYPE :string
Error message for invalid WebGL context.
Type:
- string
(constant) ERROR_WRAP_S_OPTION_TYPE :string
Error message for invalid wrapS option.
Type:
- string
(constant) ERROR_WRAP_T_OPTION_TYPE :string
Error message for invalid wrapT option.
Type:
- string
(constant) EVENT_CONTEXT_MENU :string
Context menu event type.
Type:
- string
- Source:
(constant) EVENT_KEYDOWN :string
Keyboard event type: `keydown`.
Type:
- string
- Source:
(constant) EVENT_KEYUP :string
Keyboard event type: `keyup`.
Type:
- string
- Source:
(constant) EVENT_POINTERDOWN :string
Pointer event type: `pointerdown`.
Type:
- string
- Source:
(constant) EVENT_POINTERMOVE :string
Pointer event type: `pointermove`.
Type:
- string
- Source:
(constant) EVENT_POINTERUP :string
Pointer event type: `pointerup`.
Type:
- string
- Source:
(constant) EVENT_WINDOW_BLUR :string
Window blur event type.
Type:
- string
- Source:
(constant) FACE_MIN_VERTEX_COUNT :number
Face requires at least the `3 vertices`.
Type:
- number
- Source:
(constant) FAN_FIRST_VERTEX_INDEX :number
Index, of the first face vertex in fan triangulation.
Type:
- number
- Source:
(constant) FIRST_INDEX :number
Index used to reference the first element in arrays.
Type:
- number
- Source:
(constant) FIRST_INDEX :number
Index used to reference the first element in arrays.
Type:
- number
(constant) FIRST_INDEX :number
Index, used to reference the first element in arrays.
Type:
- number
(constant) FIRST_INDEX :number
Index, used to reference the first element in arrays.
Type:
- number
- Source:
(constant) FIRST_PERSON_CAMERA_MODES :Object
Enum-like dictionary of supported first-person camera modes.
Type:
- Object
- Source:
(constant) FIRST_PERSON_CAMERA_MODE_BOBBING :string
First-person camera mode - bobbing (walking sway).
Type:
- string
- Source:
(constant) FIRST_PERSON_CAMERA_MODE_NORMAL :string
First-person camera mode - normal (no bobbing).
Type:
- string
- Source:
(constant) FIRST_PERSON_CAMERA_MODE_SET :Set.<string>
Supported first-person camera mode values.
Type:
- Set.<string>
- Source:
(constant) FOURTH_INDEX :number
Index used to reference the fourth element in arrays.
Type:
- number
- Source:
(constant) FOURTH_INDEX :number
Index, used to reference the fourth element in arrays.
Type:
- number
- Source:
(constant) FPS_FALLBACK_VALUE :number
Fallback FPS returned by `FpsCounter#end`, when a value is not yet available.
Type:
- number
- Source:
(constant) FPS_ROW_LABEL :string
FPS row label.
Type:
- string
- Source:
(constant) FRAMES_INCREMENT :number
Frame count increment used for each recorded frame.
Type:
- number
- Source:
(constant) FRAME_TIME_DECIMAL_PLACES :number
Number of digits used by `Number#toFixed` to format frame time values.
Type:
- number
- Source:
(constant) FRAME_TIME_ROW_LABEL :string
Frame time row label (milliseconds).
Type:
- string
- Source:
(constant) HALF_MULTIPLIER :number
Multiplier used to compute half of a value.
Type:
- number
- Source:
(constant) HEADER_CLASS :string
Header CSS class.
Type:
- string
- Source:
(constant) HIDDEN_OPACITY :number
Opacity used, when the gizmo is hidden.
Type:
- number
- Source:
(constant) HIDDEN_OPACITY :number
Opacity used, when the gizmo is hidden.
Type:
- number
- Source:
(constant) HYPHEN_SEPARATOR :string
Hyphen separator sign.
Type:
- string
- Source:
(constant) INITIAL_ACCUMULATED_FRAME_TIME_MS :number
Initial accumulated time value.
Type:
- number
- Source:
(constant) INITIAL_FRAMES_SINCE_LAST_UPDATE :number
Initial frame counter value.
Type:
- number
- Source:
(constant) INPUT_BACKWARD :number
Input vector component for backward motion.
Type:
- number
- Source:
(constant) INPUT_EPSILON :number
Non-zero epsilon used for normalization checks.
Type:
- number
- Source:
(constant) INPUT_FORWARD :number
Input vector component for forward motion.
Type:
- number
- Source:
(constant) INPUT_NONE :number
No movement input value.
Type:
- number
- Source:
(constant) INTERSECTION_DISTANCE_KEY :string
Intersection distance key.
Type:
- string
- Source:
(constant) INTERSECTION_OBJECT_KEY :string
Intersection object key.
Type:
- string
- Source:
(constant) INTERSECTION_POINT_KEY :string
Intersection point key.
Type:
- string
- Source:
(constant) INVERSE_DIRECTION_NUMERATOR :number
Inverse numerator used in direction inverse computations.
Type:
- number
- Source:
(constant) KEY_CODES :Object
`KeyboardEvent.code` values used by the controls.
Type:
- Object
- Source:
(constant) KEY_VALUES :KeyValues
`KeyboardEvent.key` fallback values used by the controls.
Type:
- Source:
(constant) LINE_BREAK_REGEX :RegExp
Regular expression used to split the MTL text into lines.
Type:
- RegExp
- Source:
(constant) LINE_BREAK_REGEX :RegExp
Regular expression used to split the OBJ text into the lines.
Type:
- RegExp
- Source:
(constant) LINE_MIN_VERTEX_COUNT :number
Minimum vertex count required for line geometry.
Type:
- number
(constant) LINE_MIN_VERTEX_COUNT :number
Line requires at least 2 vertices.
Type:
- number
- Source:
(constant) LINE_SPLIT_REGEX :RegExp
Regular expression used to split the MTL lines by whitespace.
Type:
- RegExp
- Source:
(constant) LINE_SPLIT_REGEX :RegExp
Regular expression used to split the OBJ lines by whitespace.
Type:
- RegExp
- Source:
(constant) LOOP_INCREMENT :number
Loop increment value.
Type:
- number
- Source:
(constant) LOOP_INCREMENT :number
Index increment for loops.
Type:
- number
(constant) LOOP_INDEX_INCREMENT :number
Index increment value for loops.
Type:
- number
- Source:
(constant) LOOP_START_INDEX :number
Start index for loops.
Type:
- number
- Source:
(constant) LOOP_START_INDEX :number
Loop start index.
Type:
- number
- Source:
(constant) MAP_FLOAT_TOKEN_REGEX :RegExp
Regular expression for validating numeric map tokens.
Type:
- RegExp
- Source:
(constant) MARKER_COLOR :Float32Array
Marker color (RGB).
Type:
- Float32Array
- Source:
(constant) MARKER_HALF_SIZE :number
Position marker half-length.
Type:
- number
- Source:
(constant) MATRIX_INDEX_00 :number
Matrix element indices for the 4x4 matrices.
Type:
- number
- Source:
(constant) MAX_NORMALIZED :number
Inclusive upper bound for a [0..1] range value.
Type:
- number
- Source:
(constant) MAX_SHININESS :number
Maximum shininess value.
Type:
- number
(constant) MAX_TEXTURE_UNIT_OFFSET :number
Texture unit range offset for map slots.
Type:
- number
(constant) MILLISECONDS_PER_SECOND :number
Amount of milliseconds in one second.
Type:
- number
- Source:
(constant) MINIMUM_NON_NEGATIVE_VALUE :number
Inclusive lower bound for non-negative values.
Type:
- number
- Source:
(constant) MINIMUM_POSITIVE_VALUE :number
Lower bound for positive-only checks (must be `> 0`).
Type:
- number
- Source:
(constant) MINIMUM_POSITIVE_VALUE :number
Lower bound for positive-only checks (must be `> 0`).
Type:
- number
- Source:
(constant) MINIMUM_VIEW_SIZE :number
Minimum allowed view size (height in world units).
Type:
- number
- Source:
(constant) MIN_DENOMINATOR :number
A guard value used by divisions to avoid a zero denominator.
Type:
- number
- Source:
(constant) MIN_NORMALIZED :number
Inclusive lower bound for a [0..1] range value.
Type:
- number
- Source:
(constant) MIN_NORMALIZE_LENGTH :number
Minimum length for safe normalization.
Type:
- number
- Source:
(constant) MIN_SHININESS :number
Minimum shininess value.
Type:
- number
(constant) MIN_UPDATE_INTERVAL_MS :number
Minimum allowed update interval.
Type:
- number
- Source:
(constant) MOUSE_NDC_X_KEY :string
Mouse NDC key: x.
Type:
- string
- Source:
(constant) MOUSE_NDC_Y_KEY :string
Mouse NDC key: y.
Type:
- string
- Source:
(constant) MTL_ALPHA_MAP_TOKEN :string
MTL token for alpha texture map.
Type:
- string
- Source:
(constant) MTL_AMBIENT_COLOR_TOKEN :string
MTL token for ambient color.
Type:
- string
- Source:
(constant) MTL_AMBIENT_MAP_TOKEN :string
MTL token for ambient texture map.
Type:
- string
- Source:
(constant) MTL_BUMP_MAP_ALT_TOKEN :string
Alternate MTL token for bump map.
Type:
- string
- Source:
(constant) MTL_BUMP_MAP_LOWER_TOKEN :string
Additional lowercase MTL token for the bump map.
Type:
- string
- Source:
(constant) MTL_BUMP_MAP_TOKEN :string
MTL token for bump map.
Type:
- string
- Source:
(constant) MTL_DIFFUSE_COLOR_TOKEN :string
MTL token for diffuse color.
Type:
- string
- Source:
(constant) MTL_DIFFUSE_MAP_TOKEN :string
MTL token for diffuse texture map.
Type:
- string
- Source:
(constant) MTL_DISPLACEMENT_MAP_TOKEN :string
MTL token for displacement map.
Type:
- string
- Source:
(constant) MTL_EMISSIVE_COLOR_TOKEN :string
MTL token for emissive color.
Type:
- string
- Source:
(constant) MTL_ILLUMINATION_MODEL_TOKEN :string
MTL token for illumination model.
Type:
- string
- Source:
(constant) MTL_MAP_BLEND_COMPONENTS :number
Count of components for the blend options.
Type:
- number
- Source:
(constant) MTL_MAP_IMFCHAN_COMPONENTS :number
Count of components for the image channel option.
Type:
- number
- Source:
(constant) MTL_MAP_MM_COMPONENTS :number
Count of components for the base/gain option.
Type:
- number
- Source:
(constant) MTL_MAP_OPTIONAL_VECTOR_COMPONENTS :number
Optional third component for scale/offset map options.
Type:
- number
- Source:
(constant) MTL_MAP_OPTION_BLENDU :string
MTL map option for the U-blending.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_BLENDV :string
MTL map option for the V-blending.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_BUMP_MULTIPLIER :string
MTL map option for bump multiplier.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_CLAMP :string
MTL map option for clamping.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_IMFCHAN :string
MTL map option for the image channel.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_MM :string
MTL map option for base and gain.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_OFFSET :string
MTL map option for offset.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_SCALE :string
MTL map option for scaling.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_TEXRES :string
MTL map option for the texture resolution.
Type:
- string
- Source:
(constant) MTL_MAP_OPTION_TYPE :string
MTL map option for the texture type.
Type:
- string
- Source:
(constant) MTL_MAP_SCALAR_COMPONENTS :number
Count of scalar components for map options like `-clamp` and `-bm`.
Type:
- number
- Source:
(constant) MTL_MAP_TEXRES_COMPONENTS :number
Count of components for the texture resolution option.
Type:
- number
- Source:
(constant) MTL_MAP_TYPE_COMPONENTS :number
Count of components for the type option.
Type:
- number
- Source:
(constant) MTL_MAP_UV_COMPONENTS :number
Count of vector components for scale/offset map options (UV only).
Type:
- number
- Source:
(constant) MTL_NEW_MATERIAL_TOKEN :string
MTL token for new material declaration.
Type:
- string
- Source:
(constant) MTL_OPACITY_TOKEN :string
MTL token for opacity.
Type:
- string
- Source:
(constant) MTL_OPTICAL_DENSITY_TOKEN :string
MTL token for optical density.
Type:
- string
- Source:
(constant) MTL_REFLECTION_MAP_TOKEN :string
MTL token for reflection map.
Type:
- string
- Source:
(constant) MTL_SPECULAR_COLOR_TOKEN :string
MTL token for specular color.
Type:
- string
- Source:
(constant) MTL_SPECULAR_EXPONENT_TOKEN :string
MTL token for specular exponent.
Type:
- string
- Source:
(constant) MTL_SPECULAR_MAP_TOKEN :string
MTL token for specular texture map.
Type:
- string
- Source:
(constant) MTL_TRANSPARENCY_TOKEN :string
MTL token for transparency.
Type:
- string
- Source:
(constant) MULTIPLE_SLASHES_REGEX :RegExp
Matches multiple consecutive slashes in a path.
Type:
- RegExp
- Source:
(constant) NDC_FAR :number
Maximum NDC value for the far plane.
Type:
- number
- Source:
(constant) NDC_NEAR :number
Minimum NDC value for the near plane.
Type:
- number
- Source:
(constant) NEXT_FACE_VERTEX_OFFSET :number
Offset to access the next vertex in a face.
Type:
- number
- Source:
(constant) NON_NEGATIVE_MIN :number
A numeric constant used for clamping values to a non-negative range.
Type:
- number
- Source:
(constant) NORMAL_COMPONENT_COUNT :number
Number of components for normal vectors.
Type:
- number
(constant) NORMAL_COMPONENT_COUNT :number
Number of components for normal vectors.
Type:
- number
- Source:
(constant) NOT_FOUND_INDEX :number
Index value used, when a substring search fails.
Type:
- number
- Source:
(constant) NOT_FOUND_INDEX :number
Index value used, when a substring search fails.
Type:
- number
(constant) NOT_FOUND_INDEX :number
Index value used, when a substring search fails.
Type:
- number
- Source:
(constant) OBJ_FACE_ATTRIBUTE_SEPARATOR :string
Separator, used between vertex attributes in face definitions.
Type:
- string
- Source:
(constant) OBJ_FACE_TOKEN :string
OBJ token for face definitions.
Type:
- string
- Source:
(constant) OBJ_GROUP_TOKEN :string
OBJ token for group declaration.
Type:
- string
- Source:
(constant) OBJ_INDEX_NOT_PROVIDED :number
Value indicating, that an OBJ index is not provided.
Type:
- number
(constant) OBJ_INDEX_NOT_PROVIDED :number
Value indicating, that an OBJ index is not provided.
Type:
- number
- Source:
(constant) OBJ_INDEX_OFFSET :number
Vertex index offset for OBJ.
Type:
- number
- Source:
(constant) OBJ_INDEX_ZERO :number
Value for zero indices (invalid in the OBJ indexing).
Type:
- number
- Source:
(constant) OBJ_LINE_TOKEN :string
OBJ token for line definitions.
Type:
- string
- Source:
(constant) OBJ_MATERIAL_LIB_TOKEN :string
OBJ token for material library reference.
Type:
- string
- Source:
(constant) OBJ_NORMAL_TOKEN :string
OBJ token for vertex normals.
Type:
- string
- Source:
(constant) OBJ_OBJECT_TOKEN :string
OBJ token for object declaration.
Type:
- string
- Source:
(constant) OBJ_POINT_TOKEN :string
OBJ token for point definitions.
Type:
- string
- Source:
(constant) OBJ_SMOOTHING_TOKEN :string
OBJ token for smoothing groups.
Type:
- string
- Source:
(constant) OBJ_TEXCOORD_TOKEN :string
OBJ token for texture coordinates.
Type:
- string
- Source:
(constant) OBJ_USE_MATERIAL_TOKEN :string
OBJ token for material assignment.
Type:
- string
- Source:
(constant) OBJ_VERTEX_TOKEN :string
OBJ token for vertex positions.
Type:
- string
- Source:
(constant) ONE_COMPONENT :number
One component value.
Type:
- number
- Source:
(constant) ONE_VALUE :number
One value constant.
Type:
- number
- Source:
(constant) OPTION_FILTER_KEY :string
Raycast options key: filter.
Type:
- string
- Source:
(constant) OPTION_RECURSIVE_KEY :string
Raycast options key: recursive.
Type:
- string
- Source:
(constant) OPTION_SORT_KEY :string
Raycast options key: sort.
Type:
- string
- Source:
(constant) PATH_SEPARATOR :string
Forward slash separator token.
Type:
- string
(constant) PATH_SEPARATOR :string
Path separator for URL detection and slicing.
Type:
- string
- Source:
(constant) PICK_OPACITY :number
Opacity, used for pick volumes (always hidden).
Type:
- number
- Source:
(constant) PLACEHOLDER_TEXT :string
Placeholder text shown before the first measurement.
Type:
- string
- Source:
(constant) POINTER_ID_RESET_VALUE :number
Pointer capture reset value.
Type:
- number
- Source:
(constant) POINTER_ID_RESET_VALUE :number
Pointer capture is used only for a single pointer at a time.
This value indicates that no pointer is currently captured.
Type:
- number
- Source:
(constant) POSITION_COMPONENT_COUNT :number
Number of components for position vectors.
Type:
- number
(constant) POSITION_COMPONENT_COUNT :number
Number of components for position vectors.
Type:
- number
- Source:
(constant) QUOTE_TOKEN :string
Quote token for the wrapped names.
Type:
- string
(constant) QUOTE_TOKEN :string
Token, used to wrap quoted paths.
Type:
- string
- Source:
(constant) QUOTE_TOKEN :string
Token, used to wrap quoted paths.
Type:
- string
- Source:
(constant) QUOTE_TOKEN :string
Quote token for the wrapped names.
Type:
- string
- Source:
(constant) RANGE_MAX_INDEX :number
Range array index: max.
Type:
- number
- Source:
(constant) RANGE_MIN_INDEX :number
Range array index: min.
Type:
- number
- Source:
(constant) RAY_DIRECTION_EPSILON :number
Epsilon used for ray direction checks.
Type:
- number
- Source:
(constant) RAY_T_MAX_INIT :number
Maximum ray parameter initial value.
Type:
- number
- Source:
(constant) RAY_T_MIN :number
Minimum ray parameter value.
Type:
- number
- Source:
(constant) ROOT_CLASS :string
Root element CSS class.
Type:
- string
- Source:
(constant) ROTATE_BUTTON :number
The mouse button id used for rotation.
Type:
- number
- Source:
(constant) ROTATE_POINTER_BUTTON :number
Primary pointer button id used for rotating the camera.
Type:
- number
- Source:
(constant) ROTATION_RADIANS_PER_PIXEL :number
Rotation change per pixel, in radians.
Type:
- number
- Source:
(constant) ROTATION_RADIANS_PER_PIXEL :number
Radial rotation change per pixel, in radians.
Type:
- number
- Source:
(constant) ROW_CLASS :string
Row CSS class.
Type:
- string
- Source:
(constant) ROW_LABEL_CLASS :string
Label CSS class.
Type:
- string
- Source:
(constant) ROW_VALUE_CLASS :string
Value CSS class.
Type:
- string
- Source:
(constant) SECOND_INDEX :number
Index used to reference the second element in arrays.
Type:
- number
(constant) SECOND_INDEX :number
Index used to reference the second element in arrays.
Type:
- number
- Source:
(constant) SECOND_INDEX :number
Index used to reference the second element in arrays.
Type:
- number
(constant) SECOND_INDEX :number
Index, used to reference the second element in arrays.
Type:
- number
(constant) SECOND_INDEX :number
Index used to reference the second element in arrays.
Type:
- number
(constant) SECOND_INDEX :number
Index, used to reference the second element in arrays.
Type:
- number
- Source:
(constant) SMOOTHING_OFF_TOKEN :string
Token value, representing smoothing disabled.
Type:
- string
- Source:
(constant) SMOOTHING_ON_TOKEN :string
Token value, representing smoothing enabled.
Type:
- string
- Source:
(constant) SPACE_SEPARATOR :string
Space separator token.
Type:
- string
(constant) SPACE_SEPARATOR :string
Space separator, used to join the split-tokens back into the names.
Type:
- string
- Source:
(constant) SPACE_SEPARATOR :string
Space separator, used to join the split tokens back into the names.
Type:
- string
- Source:
(constant) SPEED_SCALE_DEFAULT :number
Default movement speed scale (no sprint).
Type:
- number
- Source:
(constant) STATE_CLASS_BAD :string
Root element state class used, when FPS is in the `bad` range.
Type:
- string
- Source:
(constant) STATE_CLASS_GOOD :string
Root element state class used, when FPS is in the `good` range.
Type:
- string
- Source:
(constant) STATE_CLASS_OK :string
Root element state class used, when FPS is in the `ok` range.
Type:
- string
- Source:
(constant) TEXTURE_UNIT_ALPHA :number
Texture unit offset for alpha map.
Type:
- number
(constant) TEXTURE_UNIT_AMBIENT :number
Texture unit offset for ambient map.
Type:
- number
(constant) TEXTURE_UNIT_BUMP :number
Texture unit offset for bump map.
Type:
- number
(constant) TEXTURE_UNIT_DIFFUSE :number
Texture unit offset for diffuse map.
Type:
- number
(constant) TEXTURE_UNIT_DISPLACEMENT :number
Texture unit offset for displacement map.
Type:
- number
(constant) TEXTURE_UNIT_REFLECTION :number
Texture unit offset for reflection map.
Type:
- number
(constant) TEXTURE_UNIT_SPECULAR :number
Texture unit offset for specular map.
Type:
- number
(constant) THIRD_INDEX :number
Index used to reference the third element in arrays.
Type:
- number
- Source:
(constant) THIRD_INDEX :number
Index used to reference the third element in arrays.
Type:
- number
(constant) THIRD_INDEX :number
Index, used to reference the third element in arrays.
Type:
- number
(constant) THIRD_INDEX :number
Index, used to reference the third element in arrays.
Type:
- number
- Source:
(constant) THIRD_PERSON_CAMERA_MODES :Object
Enum-like dictionary of supported third-person camera modes.
Type:
- Object
- Source:
(constant) THIRD_PERSON_CAMERA_MODE_BOBBING :string
Third-person camera mode - bobbing (walking sway).
Type:
- string
- Source:
(constant) THIRD_PERSON_CAMERA_MODE_NORMAL :string
Third-person camera mode - normal (no bobbing).
Type:
- string
- Source:
(constant) THIRD_PERSON_CAMERA_MODE_SET :Set.<string>
Supported third-person camera mode values.
Type:
- Set.<string>
- Source:
(constant) TOUCH_ACTION_NONE :string
Touch action CSS value used to disable browser gestures.
Type:
- string
- Source:
(constant) UNINITIALIZED_NUMBER :number
Indicates that the counter has not yet computed a value.
Type:
- number
- Source:
(constant) UV_COMPONENT_COUNT :number
Number of components for UV vectors.
Type:
- number
(constant) UV_COMPONENT_COUNT :number
Number of components for UV vectors.
Type:
- number
- Source:
(constant) VECTOR3_COMPONENT_COUNT :number
Number of components in a 3D vector.
Type:
- number
- Source:
(constant) VECTOR3_X_INDEX :number
Component index for X.
Type:
- number
- Source:
(constant) VECTOR3_Y_INDEX :number
Component index for Y.
Type:
- number
- Source:
(constant) VECTOR3_Z_INDEX :number
Component index for Z.
Type:
- number
- Source:
(constant) VECTOR_INDEX_X :number
Index for X component in arrays.
Type:
- number
- Source:
(constant) VECTOR_INDEX_Y :number
Index for Y component in arrays.
Type:
- number
- Source:
(constant) VECTOR_INDEX_Z :number
Index for Z component in arrays.
Type:
- number
- Source:
(constant) VERTEX_KEY_SEPARATOR :string
Separator for unique vertex keys.
Type:
- string
(constant) VISIBLE_OPACITY :number
Opacity used, when the gizmo is visible.
Type:
- number
- Source:
(constant) WARNING_KEY_SEPARATOR :string
Warning key separator.
Type:
- string
(constant) WARNING_MTL_AVAILABLE_END :string
Warning list end token for available materials.
Type:
- string
(constant) WARNING_MTL_AVAILABLE_LIMIT :number
Maximum number of available materials included in warnings.
Type:
- number
(constant) WARNING_MTL_AVAILABLE_PREFIX :string
Warning suffix prefix for available materials list.
Type:
- string
(constant) WARNING_MTL_AVAILABLE_SEPARATOR :string
Warning separator for available material names.
Type:
- string
(constant) WARNING_MTL_AVAILABLE_START :string
Warning list start token for available materials.
Type:
- string
(constant) WARNING_MTL_LOAD_FAILED_PREFIX :string
Warning prefix for failed MTL loads.
Type:
- string
(constant) WARNING_MTL_LOAD_FAILED_REASON_PREFIX :string
Warning prefix for failed MTL load reason.
Type:
- string
(constant) WARNING_MTL_LOAD_FAILED_UNKNOWN :string
Warning placeholder for unknown MTL load errors.
Type:
- string
(constant) WARNING_MTL_MATERIAL_NOT_FOUND_PREFIX :string
Warning prefix for missing MTL materials.
Type:
- string
(constant) WARNING_MTL_MISSING_DIFFUSE_BASE_PREFIX :string
Warning suffix prefix for texture base URL.
Type:
- string
(constant) WARNING_MTL_MISSING_DIFFUSE_PREFIX :string
Warning prefix for missing diffuse map URL.
Type:
- string
(constant) WHEEL_DISTANCE_MULTIPLIER :number
Wheel delta multiplier that is applied to the orbit distance.
Type:
- number
- Source:
(constant) WHEEL_LISTENER_OPTIONS :Object
`wheel` event listener options.
Using `passive: false` allows calling `event.preventDefault()` to stop page scrolling.
Type:
- Object
- Source:
(constant) WHITESPACE_REGEX :RegExp
Whitespace regex for collapsing the repeated spaces.
Type:
- RegExp
(constant) ZERO_COMPONENT :number
Zero component value.
Type:
- number
- Source:
(constant) ZERO_VALUE :number
Zero value constant.
Type:
- number
- Source:
(constant) ZERO_VALUE :number
Zero value constant.
Type:
- number
- Source:
(constant) ZERO_VALUE :number
Zero value used for numeric comparisons.
Type:
- number
- Source:
(constant) ZERO_VALUE :number
Zero value used for numeric comparisons.
Type:
- number
(constant) ZERO_VALUE :number
Zero value, used for the numeric comparisons.
Type:
- number
(constant) ZERO_VALUE :number
Zero value used for numeric comparisons.
Type:
- number
(constant) ZERO_VALUE :number
Zero value constant.
Type:
- number
- Source:
Methods
createEngine(canvas, optionsopt) → {Engine}
Factory function for `Engine`.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
canvas |
HTMLCanvasElement | Canvas used for rendering. | |
options |
EngineOptions |
<optional> |
Engine options. |
- Source:
Returns:
- Type
- Engine
resolvePrimitiveMode(renderingContext, primitive) → {number}
Maps engine primitive constants to the WebGL draw modes.
Parameters:
| Name | Type | Description |
|---|---|---|
renderingContext |
WebGL2RenderingContext | WebGL2 rendering context. |
primitive |
string | Geometry primitive name. |
- Source:
Returns:
- WebGL draw mode constant.
- Type
- number
Type Definitions
BoxFaceDefinition
Internal face grid definition for `BoxGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
axisU |
Array.<number> | U axis direction. |
axisV |
Array.<number> | V axis direction. |
normal |
Array.<number> | Face normal. |
fixed |
number | Fixed coordinate value for the remaining axis. |
sizeU |
number | Face size along U. |
sizeV |
number | Face size along V. |
segmentsU |
number | Segment count along U `>= 1`. |
segmentsV |
number | Segment count along V `>= 1`. |
- Source:
BoxGeometryData
Internal geometry buffers produced by `BoxGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
BoxGeometryOptions
Options used by `BoxGeometry` constructor.
`colors` supports:
- Uniform RGB (`length === 3`)
- Per-face RGB (`length === 18`)
- Per-vertex RGB (`length === vertexCount * 3`)
Segment parameters must be `integers >= 1`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
size |
number |
<optional> |
1.0 | Convenience cube size (applies to width, height or depth). |
width |
number |
<optional> |
size | Box width along the X axis. |
height |
number |
<optional> |
size | Box height along the Y axis. |
depth |
number |
<optional> |
size | Box depth along the Z axis. |
widthSegments |
number |
<optional> |
1 | Subdivisions along the X axis. |
heightSegments |
number |
<optional> |
1 | Subdivisions along the Y axis. |
depthSegments |
number |
<optional> |
1 | Subdivisions along the Z axis. |
colors |
Float32Array |
<optional> |
Color specification buffer. |
- Source:
CameraState
Derived camera state computed for the current frame.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
azimuthRadians |
number | |
polarRadians |
number | |
bobbingOffset |
number | |
bobbingPitch |
number |
- Source:
CameraState
Derived camera state computed for the current frame.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
azimuthRadians |
number | |
polarRadians |
number | |
bobbingOffset |
number | |
bobbingPitch |
number |
- Source:
CameraState
Derived camera state computed for the current frame.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
azimuthRadians |
number | |
polarRadians |
number | |
bobbingOffset |
number | |
bobbingPitch |
number |
- Source:
CatmullRomSegment
Catmull-Rom curve segment data.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
previous |
Vector3 | Previous control point. |
start |
Vector3 | Segment start control point. |
end |
Vector3 | Segment end control point. |
next |
Vector3 | Next control point. |
parameter |
number | Local segment parameter. |
- Source:
ConeGeometryData
Internal geometry buffers produced by `ConeGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
ConeGeometryOptions
Cone geometry options.
`width` is the base diameter along X. `depth` (optional) is the base diameter along Z.
If `depth` is not provided, it defaults to `width` (circular base).
Segment parameters must be integers:
- `radialSegments >= 3`
- `heightSegments >= 1`
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
number |
<optional> |
1.0 | Base diameter along X. |
height |
number |
<optional> |
1.5 | Cone height along Y. |
depth |
number |
<optional> |
width | Base diameter along Z. |
radialSegments |
number |
<optional> |
24 | Segments around the base. |
heightSegments |
number |
<optional> |
1 | Segments along height. |
capped |
boolean |
<optional> |
GEOMETRY_DEFAULTS.CAPPED | Whether to generate a bottom cap. |
colors |
Float32Array |
<optional> |
Color specification buffer. |
- Source:
CreateBoxMeshOptions
Options used by `Engine.createBoxMesh`.
Ownership rule: if `material` is provided by the user, created `Mesh` must NOT own it.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
size |
number |
<optional> |
1.0 | Edge length of the box. |
material |
Material |
<optional> |
Optional material instance (shared). |
- Source:
CustomGeometryOptions
Options used by `CustomGeometry`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
positions |
Float32Array | Vertex positions (xyz). | ||
indices |
Array.<number> | Uint16Array | Uint32Array | Solid triangle indices. | ||
wireframeIndices |
Array.<number> | Uint16Array | Uint32Array | null |
<optional> |
null | Wireframe indices (lines). |
colors |
Float32Array | null |
<optional> |
null | Optional colors (rgb) per vertex or uniform spec. |
uvs |
Float32Array | null |
<optional> |
null | Optional UV coordinates (uv). |
normals |
Float32Array | null |
<optional> |
null | Optional normals (xyz). |
- Source:
DirectionalLightMaterialBaseOptions
Material base options used by `DirectionalLightMaterial`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
ownsShaderProgram |
boolean |
<optional> |
true | Whether this material owns and disposes the shader program. |
DirectionalLightMaterialOptions
Options common to directional-light materials.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
color |
Float32Array | Array.<number> |
<optional> |
Diffuse RGB color [red, green, blue] in [0..1] range. |
lightDirection |
Float32Array | Array.<number> |
<optional> |
Directional light direction (world space), normalized internally. |
ambientStrength |
number |
<optional> |
Ambient term multiplier. |
directionalStrength |
number |
<optional> |
Directional light strength multiplier. |
lightingEnabled |
boolean | number |
<optional> |
Lighting enabled flag (boolean or 0..1 float). |
EngineFrameCallback(deltaTimeSeconds, timeSeconds, engine)
Per-frame callback invoked by `Engine.start`.
Parameters:
| Name | Type | Description |
|---|---|---|
deltaTimeSeconds |
number | Time passed since previous frame, in seconds. |
timeSeconds |
number | Time since engine start, in seconds. |
engine |
Engine | Current engine instance. |
- Source:
EngineOptions
Options used by `createEngine` and `Engine`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
fieldOfViewRadians |
number |
<optional> |
Math.PI / 4 | Vertical field of view in radians. |
near |
number |
<optional> |
0.1 | Near clipping plane. |
far |
number |
<optional> |
100.0 | Far clipping plane. |
initialCameraZ |
number |
<optional> |
5.0 | Initial camera position on the Z axis. |
fitToWindow |
boolean |
<optional> |
false | When true, the engine will render using `window.innerWidth/innerHeight` as the canvas size source. |
- Source:
FirstPersonCameraOptions
Options used by FirstPersonCamera.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
fieldOfViewRadians |
number |
<optional> |
Math.PI / 4 | Vertical field of view in radians. |
aspectRatio |
number |
<optional> |
1.0 | Viewport aspect ratio (width / height). |
near |
number |
<optional> |
0.1 | Distance to the near clipping plane. |
far |
number |
<optional> |
200.0 | Distance to the far clipping plane. |
mode |
string |
<optional> |
'NORMAL' | Camera mode, see `FirstPersonCamera.Modes`. |
- Source:
FirstPersonControlsOptions
Options used by FirstPersonControls.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
eyeHeight |
number |
<optional> |
1.6 | Eye height above the target. |
- Source:
FpsCounterOptions
Options used by `FpsCounter`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
label |
string |
<optional> |
'Performance' | Short title shown at the top of the panel. |
updateIntervalMs |
number |
<optional> |
250 | DOM refresh interval (ms). Values are computed every frame. |
smoothingFactor |
number |
<optional> |
0.15 | Exponential smoothing factor in [0..1]. |
showFrameTime |
boolean |
<optional> |
true | When true, also shows the average frame time in milliseconds. |
goodFpsThreshold |
number |
<optional> |
55 | FPS value that should be considered `good`. |
okFpsThreshold |
number |
<optional> |
30 | FPS value that should be considered `ok`. |
- Source:
GeneratedGeometryData
CPU buffers returned by a geometry generator.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
positions |
Float32Array | Vertex positions. | |
colors |
Float32Array | null | Optional vertex colors. | |
indicesSolid |
Uint16Array | Uint32Array | Solid primitive indexes. | |
indicesWireframe |
Uint16Array | Uint32Array | Wireframe indexes. | |
uvs |
Float32Array | null | Optional texture coordinates. | |
normals |
Float32Array | null | Optional vertex normals. | |
primitiveOptions |
Object |
<optional> |
Solid and wireframe primitive overrides. |
- Source:
GeometryPrimitiveOptions
Geometry primitive override options.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
solidPrimitive |
string |
<optional> |
PRIMITIVE_TRIANGLES | Solid primitive type. |
wireframePrimitive |
string |
<optional> |
PRIMITIVE_LINES | Wireframe primitive type. |
- Source:
HeightmapGeometryData
Internal geometry buffers produced by `HeightmapGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
HeightmapGeometryOptions
Heightmap geometry options.
`colors` supports:
- uniform RGB (`length === 3`)
- per-vertex RGB (`length === vertexCount * 3`)
Segment parameters must be `integers >= 1`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
number |
<optional> |
1.0 | Terrain width along the X axis. |
depth |
number |
<optional> |
1.0 | Terrain depth along the Z axis. |
heightScale |
number |
<optional> |
1.0 | Heightmap scale multiplier. |
heightOffset |
number |
<optional> |
0.0 | Heightmap offset along the Y axis. |
segmentsX |
number |
<optional> |
1 | Segment count along the X axis. |
segmentsZ |
number |
<optional> |
1 | Segment count along the Z axis. |
isWireframe |
boolean |
<optional> |
false | Wireframe hint for consumers. |
colors |
Float32Array |
<optional> |
Color specification buffer. | |
flipY |
boolean |
<optional> |
true | When true, flips heightmap sampling along the Y axis. |
sampling |
string |
<optional> |
'nearest' | Sampling mode: `nearest` or `bilinear`. |
- Source:
HeightmapSource
Heightmap source data.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
imageData |
ImageData | Heightmap image data. |
- Source:
Intersection
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
object |
Mesh | Intersected mesh. |
distance |
number | Distance from ray origin to the intersection point. |
point |
RaycastPoint | Intersection point in world space. |
- Source:
KeyValues
`KeyboardEvent.key` fallback values used by the controls.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
FORWARD |
string | Forward key value. |
BACKWARD |
string | Backward key value. |
LEFT |
string | Left key value. |
RIGHT |
string | Right key value. |
RUN |
string | Run key value. |
JUMP |
string | Jump key value (space). |
SPACEBAR |
string | Deprecated legacy key value for space. |
- Source:
KeyboardControlsOptions
Options used by KeyboardControls.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
groundY |
number |
<optional> |
0.0 | Ground height for jumping and landing. |
azimuthRadians |
number |
<optional> |
0 | Initial yaw angle in radians. |
polarRadians |
number |
<optional> |
-0.35 | Initial pitch angle in radians. |
minPolarRadians |
number |
<optional> |
-1.25 | Minimum pitch angle in radians. |
maxPolarRadians |
number |
<optional> |
0.55 | Maximum pitch angle in radians. |
rotationSpeed |
number |
<optional> |
1.0 | Mouse rotation speed multiplier. |
moveSpeed |
number |
<optional> |
3.0 | Walking speed in world units per second. |
runSpeedMultiplier |
number |
<optional> |
1.8 | Speed multiplier when running (Shift). |
jumpSpeed |
number |
<optional> |
4.2 | Jump velocity. |
gravity |
number |
<optional> |
9.8 | Gravity acceleration magnitude. |
bobbingAmplitudeWalk |
number |
<optional> |
0.05 | Camera bobbing height while walking. |
bobbingAmplitudeRun |
number |
<optional> |
0.09 | Camera bobbing height while running. |
bobbingFrequencyWalk |
number |
<optional> |
9.0 | Bobbing angular speed while walking. |
bobbingFrequencyRun |
number |
<optional> |
13.0 | Bobbing angular speed while running. |
bobbingPitchAmplitudeRadians |
number |
<optional> |
0.02 | Camera pitch bobbing amplitude. |
- Source:
LambertMaterialOptions
Options used by `LambertMaterial`.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
color |
Float32Array | Array.<number> |
<optional> |
Diffuse RGB color [red, green, blue] in [0..1] range. |
lightDirection |
Float32Array | Array.<number> |
<optional> |
Directional light direction (world space), normalized internally. |
ambientStrength |
number |
<optional> |
Ambient term multiplier. |
- Source:
MaterialOptions
Options used by Material.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
ownsShaderProgram |
boolean |
<optional> |
false | Whether this material owns and disposes the shader program. |
- Source:
MeshOwnershipOptions
Ownership options for Mesh.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
ownsGeometry |
boolean |
<optional> |
true | When true, `Mesh.dispose()` disposes geometry. |
ownsMaterial |
boolean |
<optional> |
true | When true, `Mesh.dispose()` disposes material. |
- Source:
MovementData
Per-frame movement intent derived from input.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
moveX |
number | |
moveZ |
number | |
isMoving |
boolean | |
speed |
number |
- Source:
MovementData
Per-frame movement intent derived from input.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
moveX |
number | |
moveZ |
number | |
isMoving |
boolean | |
speed |
number |
- Source:
MovementData
Per-frame movement intent derived from input.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
moveX |
number | |
moveZ |
number | |
isMoving |
boolean | |
speed |
number |
- Source:
MtlStandardMaterialMapOptions
Texture map setter options.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
textureUnitIndex |
number |
<optional> |
Texture unit index. |
uvOffset |
Float32Array | Array.<number> |
<optional> |
UV-offset vector. |
uvScale |
Float32Array | Array.<number> |
<optional> |
UV-scale vector. |
- Source:
MtlStandardMaterialOptions
Options used by `MtlStandardMaterial`.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
diffuseColor |
Float32Array | Array.<number> |
<optional> |
Diffuse RGB color in [0..1] range. |
ambientColor |
Float32Array | Array.<number> |
<optional> |
Ambient RGB color in [0..1] range. |
specularColor |
Float32Array | Array.<number> |
<optional> |
Specular RGB color in [0..1] range. |
emissiveColor |
Float32Array | Array.<number> |
<optional> |
Emissive RGB color in [0..1] range. |
lightDirection |
Float32Array | Array.<number> |
<optional> |
Directional light direction (world space). |
ambientStrength |
number |
<optional> |
Ambient strength multiplier. |
shininess |
number |
<optional> |
Specular exponent. |
specularStrength |
number |
<optional> |
Specular strength multiplier. |
opticalDensity |
number |
<optional> |
Optical density used for reflection blending. |
- Source:
ObjFaceVertex
Type definition for parsed OBJ face vertex.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positionIndex |
number | Position index. |
uvIndex |
number | UV index. |
normalIndex |
number | Normal index. |
ObjFaceVertex
Type definition for the parsed OBJ face vertex.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positionIndex |
number | Position index (zero-based). |
uvIndex |
number | UV index (zero-based or -1). |
normalIndex |
number | Normal index (zero-based or -1). |
- Source:
ObjGeometryBuildResult
Result of building OBJ geometry.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
root |
Object3D | Root object containing all nodes. |
entries |
Array.<ObjMeshEntry> | Mesh creation entries. |
geometries |
Array.<CustomGeometry> | Created geometries. |
ObjMaterialChunk
Type definition for parsed OBJ material chunk.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
materialName |
string | Material name. |
smoothingGroup |
number | Smoothing group (0 = off). |
triangles |
Array.<Array.<ObjFaceVertex>> | Triangulated faces. |
points |
Array.<number> | Point indices. |
lines |
Array.<Array.<number>> | Line index arrays. |
ObjMaterialChunk
Type definition for the parsed OBJ material chunk.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
materialName |
string | Material name. |
smoothingGroup |
number | Smoothing group number (0 = off). |
triangles |
Array.<Array.<ObjFaceVertex>> | Triangulated faces (each triangle has 3 vertices). |
points |
Array.<number> | Point indices in this chunk. |
lines |
Array.<Array.<number>> | Line index arrays in this chunk. |
- Source:
ObjMaterialFactoryOptions
Type definition for options used by `ObjMaterialFactory`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
textureUnitIndex |
number |
<optional> |
0 | Texture unit index for the textured materials. |
defaultColor |
Float32Array | Array.<number> |
<optional> |
Default diffuse color. | |
textureCache |
MtlTextureCache |
<optional> |
Optional shared texture cache. |
ObjMaterialTextureUrls
Type definition for resolved texture URLs.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
diffuse |
string | null | Diffuse map URL. |
ambient |
string | null | Ambient map URL. |
specular |
string | null | Specular map URL. |
alpha |
string | null | Alpha map URL. |
bump |
string | null | Bump map URL. |
displacement |
string | null | Displacement map URL. |
reflection |
string | null | Reflection map URL. |
ObjMeshEntry
Output entry for mesh creation.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
entryType |
string | Entry type (mesh/points/line). |
parent |
Object3D | Parent node for the mesh. |
geometry |
CustomGeometry | PointsGeometry | PolylineGeometry | Geometry instance. |
materialName |
string | Material name used by the chunk. |
usesVertexColors |
boolean | True, when geometry includes vertex colors. |
ObjMtlLoadFromFilesOptions
Options used by `ObjMtlLoader.loadFromFiles`.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
objFile |
File | OBJ file. | |
mtlFiles |
Map.<string, File> |
<optional> |
Map of MTL files by normalized path/name. |
assetUrlMap |
Map.<string, string> |
<optional> |
Map of asset blob URLs by normalized path/name. |
baseUrl |
string |
<optional> |
Base URL for resolving relative references. |
textureBaseUrl |
string |
<optional> |
Base URL for resolving texture paths. |
ObjMtlLoadFromUrlsOptions
Options used by `ObjMtlLoader.loadFromUrls`.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
objUrl |
string | URL to the OBJ file. | |
mtlUrl |
string |
<optional> |
Optional URL to the MTL file. |
baseUrl |
string |
<optional> |
Base URL for resolving relative references. |
textureBaseUrl |
string |
<optional> |
Base URL for resolving texture paths. |
ObjMtlLoadResult
Result returned by `ObjMtlLoader.loadFromUrls`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
root |
Object3D | Root object, containing all meshes. |
meshes |
Array.<Mesh> | Loaded meshes, points and lines. |
geometries |
Array.<CustomGeometry> | Created geometries. |
materials |
Array.<(LambertMaterial|PhongMaterial|VertexColorMaterial|PointsMaterial|SolidColorMaterial|MtlStandardMaterial)> | Created materials. |
textures |
Array.<Texture2D> | Textures created by the loader. |
ObjMtlLoaderOptions
Options used by `ObjMtlLoader`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
textureUnitIndex |
number |
<optional> |
0 | Texture unit index for textured materials. |
defaultColor |
Float32Array | Array.<number> |
<optional> |
Default diffuse color. |
ObjParsedData
Parsed OBJ data.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Array.<number> | Flat positions array. |
uvs |
Array.<number> | Flat UV array. |
normals |
Array.<number> | Flat normal array. |
colors |
Array.<number> | Flat vertex color array. |
hasVertexColors |
boolean | True, when vertex colors are provided. |
objects |
Array.<ObjParsedObject> | Parsed objects. |
ObjParsedData
Parsed OBJ data.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
materialLibraries |
Array.<string> | List of MTL library file names. |
positions |
Array.<number> | Flat positions array. |
uvs |
Array.<number> | Flat UV array. |
normals |
Array.<number> | Flat normal array. |
colors |
Array.<number> | Flat vertex color array. |
hasVertexColors |
boolean | True when vertex colors are provided. |
objects |
Array.<ObjParsedObject> | Parsed objects. |
- Source:
ObjParsedGroup
Type definition for parsed OBJ group.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | Group name. |
materialChunks |
Array.<ObjMaterialChunk> | Material chunks in this group. |
ObjParsedGroup
Type definition for the parsed OBJ group.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | Group name. |
materialChunks |
Array.<ObjMaterialChunk> | Material chunks in this group. |
chunkMap |
Map.<string, ObjMaterialChunk> | Map of chunk keys. |
- Source:
ObjParsedObject
Type definition for parsed OBJ object.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | Object name. |
groups |
Array.<ObjParsedGroup> | Group list. |
ObjParsedObject
Type definition for the parsed OBJ object.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | Object name. |
groups |
Array.<ObjParsedGroup> | Group list. |
groupMap |
Map.<string, ObjParsedGroup> | Map of groups. |
- Source:
ParsedMtlMaterial
Parsed MTL material definition.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | Material name. |
diffuseColor |
Float32Array | Diffuse RGB color. |
ambientColor |
Float32Array | Ambient RGB color (parsed-only). |
specularColor |
Float32Array | Specular RGB color. |
emissiveColor |
Float32Array | Emissive RGB color (parsed-only). |
diffuseMap |
ParsedMtlTextureMap | null | Diffuse texture data, if any. |
ambientMap |
ParsedMtlTextureMap | null | Ambient texture data (parsed-only). |
specularMap |
ParsedMtlTextureMap | null | Specular texture data (parsed-only). |
alphaMap |
ParsedMtlTextureMap | null | Alpha texture data (parsed-only). |
bumpMap |
ParsedMtlTextureMap | null | Bump texture data (parsed-only). |
displacementMap |
ParsedMtlTextureMap | null | Displacement texture data (parsed-only). |
reflectionMap |
ParsedMtlTextureMap | null | Reflection texture data (parsed-only). |
specularExponent |
number | null | Specular exponent (Ns). |
opticalDensity |
number | null | Optical density (parsed-only). |
illuminationModel |
number | null | Illumination model (parsed-only). |
opacity |
number | Opacity multiplier. |
- Source:
ParsedMtlTextureMap
Parsed MTL texture map data.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
path |
string | Texture path. |
offset |
Float32Array | UV offset as `[u, v]`. |
scale |
Float32Array | UV scale as `[u, v]`. |
clamp |
boolean | True when clamping is enabled. |
bumpMultiplier |
number | Bump multiplier value. |
- Source:
Path3DSegment
Reusable data for the current path segment.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
start |
Vector3 | Segment start point. |
end |
Vector3 | Segment end point. |
parameter |
number | Local segment parameter. |
- Source:
PhongMaterialOptions
Options used by `PhongMaterial`.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
color |
Float32Array | Array.<number> |
<optional> |
Diffuse RGB color [red, green, blue] in [0..1] range. |
lightDirection |
Float32Array | Array.<number> |
<optional> |
Directional light direction (world space), normalized internally. |
ambientStrength |
number |
<optional> |
Ambient term multiplier. |
specularColor |
Float32Array | Array.<number> |
<optional> |
Specular RGB color [red, green, blue] in [0..1] range. |
specularStrength |
number |
<optional> |
Specular term multiplier. |
shininess |
number |
<optional> |
Shininess exponent for specular highlight. |
- Source:
PlaneGeometryData
Internal geometry buffers produced by `PlaneGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
PlaneGeometryOptions
Plane geometry options.
`colors` supports:
- Uniform RGB (`length === 3`)
- Per-vertex RGB (`length === vertexCount * 3`)
Segment parameters must be `integers >= 1`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
number |
<optional> |
1.0 | Plane width along the X axis. |
height |
number |
<optional> |
1.0 | Plane height along the Y axis. |
widthSegments |
number |
<optional> |
1 | Subdivisions along the X axis. |
heightSegments |
number |
<optional> |
1 | Subdivisions along the Y axis. |
colors |
Float32Array |
<optional> |
Color specification buffer. |
- Source:
PointsGeometryOptions
Options used by PointsGeometry.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
positions |
Array.<Vector3> | Point positions. | |
colors |
Float32Array | null |
<optional> |
Color specification (uniform or per-vertex). |
- Source:
PointsMaterialOptions
Options used by `PointsMaterial`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
color |
Float32Array | Array.<number> |
<optional> |
RGB color [red, green, blue] in [0..1] range. | |
pointSize |
number |
<optional> |
6.0 | Point size in pixels. |
useVertexColors |
boolean |
<optional> |
false | When true, uses vertex colors. |
- Source:
PolylineGeometryOptions
Options used by PolylineGeometry.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
positions |
Array.<Vector3> | Polyline positions. | ||
loop |
boolean |
<optional> |
false | When true, use `LINE_LOOP`. |
colors |
Float32Array | null |
<optional> |
Color specification (uniform or per-vertex). |
- Source:
PyramidBaseAppendResult
Small result object returned by base appender.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
vertexCount |
number | Number of vertices appended for the base. |
- Source:
PyramidGeometryData
Internal geometry buffers produced by `PyramidGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
PyramidGeometryOptions
Pyramid geometry options.
`width` is the base size along X.
`depth` (optional) is the base size along Z.
If `depth` is not provided, it defaults to `width` (square base).
`colors` supports:
- Uniform RGB (`length === 3`)
- Per-vertex RGB (`length === vertexCount * 3`)
Segment parameters must be integers `>= 1`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
number |
<optional> |
1.0 | Base width along X. |
height |
number |
<optional> |
1.5 | Pyramid height along Y. |
depth |
number |
<optional> |
width | Base depth along Z. |
widthSegments |
number |
<optional> |
1 | Subdivisions along X (base grid and faces that use X edges). |
depthSegments |
number |
<optional> |
1 | Subdivisions along Z (base grid and faces that use Z edges). |
heightSegments |
number |
<optional> |
1 | Subdivisions along side height. |
capped |
boolean |
<optional> |
GEOMETRY_DEFAULTS.CAPPED | Whether to generate the bottom face. |
colors |
Float32Array |
<optional> |
Color specification buffer. |
- Source:
RGBAColor
RGBA color represented as [red, green, blue, alpha], each component in the range [0 -> 1].
Type:
- Array.<number>
- Source:
Ray
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
origin |
RaycastPoint | Ray origin in world space. |
direction |
RaycastPoint | Normalized ray direction in world space. |
- Source:
RaycastOptions
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
recursive |
boolean |
<optional> |
true | When true, traverses all descendants of the scene. |
filter |
function |
<optional> |
null | Optional mesh filter. |
sort |
boolean |
<optional> |
true | When true, sorts intersections by distance. |
- Source:
RaycastPoint
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
x |
number | X coordinate. |
y |
number | Y coordinate. |
z |
number | Z coordinate. |
- Source:
ResizeToDisplaySizeOptions
Canvas resize options for `WebGLContext.resizeToDisplaySize()`.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
fitToWindow |
boolean |
<optional> |
If true, resizes the canvas to match the window size. |
- Source:
ResizeToDisplaySizeOptions
Options used by resizeToDisplaySize.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
fitToWindow |
boolean |
<optional> |
false | When true, uses `window.innerWidth/innerHeight`. When false, uses the canvas CSS size (client size) and updates the drawing buffer accordingly. |
- Source:
SolidColorMaterialOptions
Options used by SolidColorMaterial.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
color |
Float32Array | Array.<number> |
<optional> |
RGB color [red, green, blue] in [0..1] range. |
- Source:
SphereGeometryData
Internal geometry buffers produced by `SphereGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
SphereGeometryOptions
Sphere geometry options.
`width, height or depth` define full extents (diameters). Use equal values for a perfect sphere.
`colors` supports:
- Uniform RGB (`length === 3`)
- Per-vertex RGB (`length === vertexCount * 3`)
Segment parameters must be integers:
- `widthSegments >= 3`
- `heightSegments >= 2`
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
number |
<optional> |
1.0 | Diameter along X axis. |
height |
number |
<optional> |
1.0 | Diameter along Y axis. |
depth |
number |
<optional> |
1.0 | Diameter along Z axis. |
widthSegments |
number |
<optional> |
24 | Longitudinal segments. |
heightSegments |
number |
<optional> |
16 | Latitudinal segments. |
colors |
Float32Array |
<optional> |
Color specification buffer. |
- Source:
Texture2DLoadOptions
Texture2D load options, used by 'loadFromUrl'.
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
crossOrigin |
"anonymous" | "use-credentials" | null |
<optional> |
Optional cross-origin mode. |
- Source:
Texture2DOptions
Texture2D creation/update options.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
flipY |
boolean |
<optional> |
true | Flip image data vertically on upload. |
wrapS |
number |
<optional> |
WebGL wrap mode for S (REPEAT/CLAMP_TO_EDGE/MIRRORED_REPEAT). | |
wrapT |
number |
<optional> |
WebGL wrap mode for T (REPEAT/CLAMP_TO_EDGE/MIRRORED_REPEAT). | |
minFilter |
number | null |
<optional> |
WebGL min filter (including the mipmap variants). Use 'null' to clear explicit override and return to auto behavior. | |
magFilter |
number |
<optional> |
WebGL mag filter (NEAREST/LINEAR). | |
mipmapPolicy |
number |
<optional> |
2 | Mipmap policy: 0 = none, 1 = always, 2 = 'power-of-two' images only. |
- Source:
TexturedMaterialOptions
Options used by `TexturedMaterial` constructor.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
texture |
Texture2D |
<optional> |
Optional `Texture2D` instance. | |
textureUnitIndex |
number |
<optional> |
0 | Texture unit index used for binding. |
ownsTexture |
boolean |
<optional> |
false | If true, dispose will dispose the texture. |
ownsShaderProgram |
boolean |
<optional> |
true | If true, dispose will dispose the shader program. |
- Source:
ThirdPersonCameraOptions
Options used by ThirdPersonCamera.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
fieldOfViewRadians |
number |
<optional> |
Math.PI / 4 | Vertical field of view in radians. |
aspectRatio |
number |
<optional> |
1.0 | Viewport aspect ratio (width / height). |
near |
number |
<optional> |
0.1 | Distance to the near clipping plane. |
far |
number |
<optional> |
200.0 | Distance to the far clipping plane. |
mode |
string |
<optional> |
'NORMAL' | Camera mode, see `ThirdPersonCamera.Modes`. |
- Source:
ThirdPersonControlsOptions
Options used by ThirdPersonControls.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
distance |
number |
<optional> |
6.0 | Camera follow distance. |
targetHeight |
number |
<optional> |
1.4 | Look-at height offset from the target. |
- Source:
TorusGeometryData
Internal geometry buffers produced by `TorusGeometry`.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
positions |
Float32Array | Vertex positions (xyz). |
normals |
Float32Array | Vertex normals (xyz). |
uvs |
Float32Array | Vertex UVs (uv). |
colors |
Float32Array | Vertex colors (rgb). |
indicesSolid |
Uint16Array | Uint32Array | Triangle index buffer. |
indicesWireframe |
Uint16Array | Uint32Array | Line index buffer for wireframe. |
- Source:
TorusGeometryOptions
Torus geometry options.
`width` and `height` are interpreted as:
- `width` = major diameter (center ring diameter)
- `height` = tube diameter
Segment parameters must be integers `>= 3`.
`colors` supports:
- Uniform RGB `length === 3`
- Per-vertex RGB `length === vertexCount * 3`
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
number |
<optional> |
1.5 | Major diameter. |
height |
number |
<optional> |
0.5 | Tube diameter. |
tubularSegments |
number |
<optional> |
32 | Segments around the ring `>= 3`. |
radialSegments |
number |
<optional> |
16 | Segments around the tube `>= 3`. |
colors |
Float32Array |
<optional> |
Color specification buffer. |
- Source:
TubeLineGeometryOptions
Options used by `TubeLineGeometry`.
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
positions |
Array.<Vector3> | Path positions. | ||
radius |
number |
<optional> |
0.05 | Tube radius. |
width |
number | null |
<optional> |
null | Optional tube width (overrides the radius). |
radialSegments |
number |
<optional> |
8 | Radial segment count. |
closed |
boolean |
<optional> |
false | Whether to close the tube. |
capType |
string |
<optional> |
'none' | Cap type (none|flat). |
- Source: