THREE
Members list
Type members
Classlikes
This light globally illuminates all objects in the scene equally. It cannot be used to cast shadows as it does not have a direction.
Companion object for AmbientLight with factory method
Companion object for AmbientLight with factory method
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
AmbientLight.type
Array of cameras used for multi-viewport rendering.
Array of cameras used for multi-viewport rendering.
Attributes
- Supertypes
-
class PerspectiveCameraclass Cameraclass Object3Dclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
Represents an axis-aligned bounding box (AABB) in 2D space.
Represents an axis-aligned bounding box (AABB) in 2D space.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Represents an axis-aligned bounding box (AABB) in 3D space.
Represents an axis-aligned bounding box (AABB) in 3D space.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Class for generating rectangular cuboid geometries.
Class for generating rectangular cuboid geometries.
Attributes
- Supertypes
Base class for all geometries.
Base class for all geometries.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Known subtypes
-
class BoxGeometryclass IcosahedronGeometryclass LineSegmentsGeometryclass PolyhedronGeometryclass DodecahedronGeometryclass OctahedronGeometryclass TetrahedronGeometryShow all
Abstract base class for cameras.
Abstract base class for cameras.
Attributes
- Supertypes
- Known subtypes
Creates a texture from a canvas element.
Creates a texture from a canvas element.
Attributes
- Supertypes
A class representing an RGB color.
A class representing an RGB color.
A Color instance is represented by RGB components in the linear working color space, which defaults to LinearSRGBColorSpace. Inputs conventionally using SRGBColorSpace (such as hexadecimals and CSS strings) are converted to the working color space automatically.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A class that manages conversions between color spaces.
A class that manages conversions between color spaces.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
ColorManagement.type
Creates 6 cameras that render to a WebGLCubeRenderTarget.
Creates 6 cameras that render to a WebGLCubeRenderTarget.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Represents a texture comprising six images - one for each side of a cube.
Represents a texture comprising six images - one for each side of a cube.
Attributes
- Supertypes
Class for loading a CubeTexture.
Class for loading a CubeTexture.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Cubic interpolant.
Cubic interpolant.
The cubic interpolant uses a cubic Hermite spline for interpolation. This provides a smooth interpolation between adjacent values.
Attributes
- Supertypes
A class representing cylindrical coordinates.
A class representing cylindrical coordinates.
Cylindrical coordinates represent a position in 3D space using a distance from the origin (radius), an angle from the X axis on the XZ plane (theta), and a height above the XZ plane (y).
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Creates a texture directly from raw data, width and height.
Creates a texture directly from raw data, width and height.
Attributes
- Supertypes
Default loading manager used by loaders if one isn't specified.
Default loading manager used by loaders if one isn't specified.
Attributes
- Supertypes
- Self type
A light that gets emitted in a specific direction. This light will behave as though it is infinitely far away and the rays produced from it are all parallel. The common use case for this is to simulate daylight; the sun is far enough away that its position can be considered to be infinite.
A light that gets emitted in a specific direction. This light will behave as though it is infinitely far away and the rays produced from it are all parallel. The common use case for this is to simulate daylight; the sun is far enough away that its position can be considered to be infinite.
Attributes
- Companion
- object
- Supertypes
Companion object for DirectionalLight with factory method
Companion object for DirectionalLight with factory method
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
DirectionalLight.type
Discrete interpolant.
Discrete interpolant.
The discrete interpolant returns the sample at the position closest to the parameter.
Attributes
- Supertypes
A class for generating a dodecahedron geometry. A dodecahedron is a polyhedron with twelve pentagonal faces.
A class for generating a dodecahedron geometry. A dodecahedron is a polyhedron with twelve pentagonal faces.
Attributes
- Companion
- object
- Supertypes
-
class PolyhedronGeometryclass BufferGeometryclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
Companion object for DodecahedronGeometry with factory method.
Companion object for DodecahedronGeometry with factory method.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
DodecahedronGeometry.type
A class representing Euler Angles.
A class representing Euler Angles.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A class representing a frustum - the volume visible to a camera.
A class representing a frustum - the volume visible to a camera.
A frustum is created by the intersection of six planes. The planes correspond to the faces of a parallelepiped (a box).
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A loader for loading GLTF resources. The .gltf and .glb file extensions are supported.
A loader for loading GLTF resources. The .gltf and .glb file extensions are supported.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
The result of loading a GLTF asset.
The result of loading a GLTF asset.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
This is almost identical to an Object3D. Its purpose is to make working with groups of objects syntactically clearer.
This is almost identical to an Object3D. Its purpose is to make working with groups of objects syntactically clearer.
A group is useful for collecting objects to manipulate them as a whole, such as rotating, scaling, or setting their visibility.
Attributes
- Companion
- object
- Supertypes
A class for generating an icosahedron geometry. An icosahedron is a regular polyhedron with 20 equilateral triangular faces, 30 edges and 12 vertices.
A class for generating an icosahedron geometry. An icosahedron is a regular polyhedron with 20 equilateral triangular faces, 30 edges and 12 vertices.
Attributes
- Supertypes
A special version of Mesh with instanced rendering support. Use this if you have to render a large number of objects with the same geometry and material.
Abstract base class of interpolants over parametric samples.
Abstract base class of interpolants over parametric samples.
The parameter domain is one dimensional, typically the time or a path along a curve defined by the data.
The sample values can have any dimensionality and derived classes may apply special interpretations to the data.
This class provides the interval seek in a Template Method, deferring the actual interpolation to derived classes.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Known subtypes
Abstract base class for lights.
Abstract base class for lights.
Attributes
- Supertypes
- Known subtypes
-
class AmbientLightclass DirectionalLight
A continuous line.
A continuous line.
This is nearly the same as LineSegments; the only difference is that it is rendered using gl.LINE_STRIP instead of gl.LINES.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class LineLoopclass LineSegments
A class representing a line in 3D space, defined by a start point and an end point.
A class representing a line in 3D space, defined by a start point and an end point.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A material for drawing wireframe-style geometries with solid lines.
A material for drawing wireframe-style geometries with solid lines.
Attributes
- Supertypes
Parameters for LineBasicMaterial.
Parameters for LineBasicMaterial.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A continuous line that connects back to the start.
A continuous line that connects back to the start.
This is nearly the same as Line; the only difference is that it is rendered using gl.LINE_LOOP instead of gl.LINE_STRIP, which draws a straight line to the next vertex, and connects the last vertex back to the first.
Attributes
- Companion
- object
- Supertypes
A material for drawing line segments with custom width.
A material for drawing line segments with custom width.
Attributes
- Supertypes
A series of lines drawn between pairs of vertices.
A series of lines drawn between pairs of vertices.
This is nearly the same as Line; the only difference is that it is rendered using gl.LINES instead of gl.LINE_STRIP.
Attributes
- Companion
- object
- Supertypes
Companion object for LineSegments class
Companion object for LineSegments class
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
LineSegments.type
A series of lines drawn between pairs of vertices.
A series of lines drawn between pairs of vertices.
This adds functionality beyond LineSegments, like arbitrary line width and changing width to be in world units. Line2 extends this object, forming a polyline instead of individual segments.
Attributes
- Supertypes
A specialized geometry for drawing line segments.
A specialized geometry for drawing line segments.
Attributes
- Supertypes
Linear interpolant.
Linear interpolant.
The linear interpolant performs a simple linear interpolation between two adjacent values.
Attributes
- Supertypes
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
LinearSRGBColorSpace.type
Converts color component from linear to sRGB space
Converts color component from linear to sRGB space
Attributes
- Supertypes
-
trait Function1[Double, Double]class Functionclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
- Self type
-
LinearToSRGB.type
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
LinearTransfer.type
Class for managing and tracking loaded and pending data.
Class for managing and tracking loaded and pending data.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Known subtypes
-
object DefaultLoadingManager
Abstract base class for materials.
Abstract base class for materials.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Known subtypes
-
class LineBasicMaterialclass LineMaterialclass MeshBasicMaterialclass MeshPhongMaterialclass PointsMaterialclass SpriteMaterialShow all
A collection of math utility functions.
A collection of math utility functions.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
MathUtils.type
Constants and functions from MathUtils available as top-level exports
Constants and functions from MathUtils available as top-level exports
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
MathUtilsConstants.type
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
MathUtilsFunctions.type
Represents a 3x3 matrix in Three.js.
Represents a 3x3 matrix in Three.js.
The constructor and set method take arguments in row-major order, while internally they are stored in the elements array in column-major order.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Class representing triangular polygon mesh based objects.
Class representing triangular polygon mesh based objects.
Example:
val geometry = new BoxGeometry(1, 1, 1)
val material = new MeshBasicMaterial(js.Dynamic.literal(color = 0xffff00))
val mesh = new Mesh(geometry, material)
scene.add(mesh)
Attributes
- Supertypes
- Known subtypes
-
class InstancedMeshclass LineSegments2
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MeshBasicMaterial.type
Interface that represents a mesh-like object that can be added to a scene.
Interface that represents a mesh-like object that can be added to a scene.
Attributes
- Supertypes
A material for shiny surfaces with specular highlights.
A material for shiny surfaces with specular highlights.
The material uses a non-physically based Blinn-Phong model for calculating reflectance. Unlike the Lambertian model used in the MeshLambertMaterial this can simulate shiny surfaces with specular highlights (such as varnished wood).
Attributes
- Companion
- object
- Supertypes
Companion object for MeshPhongMaterial with factory method
Companion object for MeshPhongMaterial with factory method
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MeshPhongMaterial.type
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
NoColorSpace.type
Base class for all objects in the THREE scene graph.
Base class for all objects in the THREE scene graph.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Known subtypes
-
class Cameraclass OrthographicCameraclass PerspectiveCameraclass ArrayCameraclass Groupclass Lightclass AmbientLightclass DirectionalLightclass Lineclass LineLoopclass LineSegmentsclass Meshclass InstancedMeshclass LineSegments2trait MeshObject3Dclass Pointsclass Sceneclass SpriteShow all
A class for generating an octahedron geometry. An octahedron is a polyhedron with eight triangular faces.
A class for generating an octahedron geometry. An octahedron is a polyhedron with eight triangular faces.
Attributes
- Companion
- object
- Supertypes
-
class PolyhedronGeometryclass BufferGeometryclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
Companion object for OctahedronGeometry with factory method.
Companion object for OctahedronGeometry with factory method.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
OctahedronGeometry.type
Orbit controls allow the camera to orbit around a target.
Orbit controls allow the camera to orbit around a target.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Camera that uses perspective projection.
A class representing a plane in 3D space.
A class representing a plane in 3D space.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Companion object for PointsMaterial with factory methods.
Companion object for PointsMaterial with factory methods.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PointsMaterial.type
Parameters for PointsMaterial.
Parameters for PointsMaterial.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A class for generating a polyhedron geometry.
Companion object for PolyhedronGeometry with factory method.
Companion object for PolyhedronGeometry with factory method.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
PolyhedronGeometry.type
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Quaternion Linear Interpolant.
Quaternion Linear Interpolant.
Interpolant for quaternions with spherical linear interpolation (SLERP). This interpolation ensures proper rotation interpolation.
Attributes
- Supertypes
A ray that emits from an origin in a certain direction.
A ray that emits from an origin in a certain direction.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
This class is designed to assist with raycasting. Raycasting is used for mouse picking and more.
This class is designed to assist with raycasting. Raycasting is used for mouse picking and more.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
The intersection point of a raycaster intersection test.
The intersection point of a raycaster intersection test.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
SRGBColorSpace.type
Converts color component from sRGB to linear space
Converts color component from sRGB to linear space
Attributes
- Supertypes
-
trait Function1[Double, Double]class Functionclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
- Self type
-
SRGBToLinear.type
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
SRGBTransfer.type
Scenes allow you to set up what and where is to be rendered by three.js.
Scenes allow you to set up what and where is to be rendered by three.js.
Attributes
- Supertypes
A class representing a sphere in 3D space.
A class representing a sphere in 3D space.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A class for spherical coordinates.
A class for spherical coordinates.
Spherical coordinates represent a position in 3D space using a distance from origin (radius), an angle from the y (polar) axis, and an angle around the y axis (equator).
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A class for storing spherical harmonics.
A class for storing spherical harmonics.
Spherical harmonics are an extension of Spherical coordinates to the sphere, and are particularly useful for representing some types of directional data.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
SphericalHarmonics3.type
A sprite is a plane that always faces towards the camera. Sprites do not cast shadows, do not receive shadows, and do not have any depth testing.
A sprite is a plane that always faces towards the camera. Sprites do not cast shadows, do not receive shadows, and do not have any depth testing.
Attributes
- Supertypes
Materials for sprites.
Materials for sprites.
Attributes
- Supertypes
A special type of camera that uses two perspective cameras with stereoscopic projection. Can be used for rendering stereo effects like 3D Anaglyph or Parallax Barrier.
A special type of camera that uses two perspective cameras with stereoscopic projection. Can be used for rendering stereo effects like 3D Anaglyph or Parallax Barrier.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A class for generating a tetrahedron geometry. A tetrahedron is a polyhedron with four triangular faces.
A class for generating a tetrahedron geometry. A tetrahedron is a polyhedron with four triangular faces.
Attributes
- Companion
- object
- Supertypes
-
class PolyhedronGeometryclass BufferGeometryclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
Companion object for TetrahedronGeometry with factory method.
Companion object for TetrahedronGeometry with factory method.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
TetrahedronGeometry.type
Base class for textures in THREE.js.
Base class for textures in THREE.js.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Known subtypes
Class for loading a texture.
Class for loading a texture.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
A class representing a triangle in 3D space.
A class representing a triangle in 3D space.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Class representing a 4D vector.
Class representing a 4D vector.
A 4D vector is typically used for representing homogeneous coordinates or quaternions.
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Creates a texture for use with a video.
Creates a texture for use with a video.
Attributes
- Supertypes
The WebGL renderer displays your scenes using WebGL.
The WebGL renderer displays your scenes using WebGL.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WebGLRenderer.type