THREE

package THREE

Members list

Type members

Classlikes

class AmbientLight(color: Int | String | Color, intensity: Double) extends Light

This light globally illuminates all objects in the scene equally. It cannot be used to cast shadows as it does not have a direction.

This light globally illuminates all objects in the scene equally. It cannot be used to cast shadows as it does not have a direction.

Attributes

Companion
object
Supertypes
class Light
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object AmbientLight extends Object

Companion object for AmbientLight with factory method

Companion object for AmbientLight with factory method

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class ArrayCamera(var cameras: Array[PerspectiveCamera]) extends PerspectiveCamera

Array of cameras used for multi-viewport rendering.

Array of cameras used for multi-viewport rendering.

Attributes

Supertypes
class Camera
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class Box2(val min: UndefOr[Vector2], val max: UndefOr[Vector2]) extends Object

Represents an axis-aligned bounding box (AABB) in 2D space.

Represents an axis-aligned bounding box (AABB) in 2D space.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Box3(val min: UndefOr[Vector3], val max: UndefOr[Vector3]) extends Object

Represents an axis-aligned bounding box (AABB) in 3D space.

Represents an axis-aligned bounding box (AABB) in 3D space.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class BoxGeometry(width: Double, height: Double, depth: Double, widthSegments: Int, heightSegments: Int, depthSegments: Int) extends BufferGeometry

Class for generating rectangular cuboid geometries.

Class for generating rectangular cuboid geometries.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class BufferGeometry extends Object

Base class for all geometries.

Base class for all geometries.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes
class Camera extends Object3D

Abstract base class for cameras.

Abstract base class for cameras.

Attributes

Supertypes
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
class CanvasTexture(canvas: Any, mapping: UndefOr[Int], wrapS: UndefOr[Int], wrapT: UndefOr[Int], magFilter: UndefOr[Int], minFilter: UndefOr[Int], format: UndefOr[Int], tpe: UndefOr[Int], anisotropy: UndefOr[Int]) extends Texture

Creates a texture from a canvas element.

Creates a texture from a canvas element.

Attributes

Supertypes
class Texture
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class Color(var r: UndefOr[Double | String | Color], var g: UndefOr[Double], var b: UndefOr[Double]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
object Color extends Object

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Color.type
object ColorManagement extends Object

A class that manages conversions between color spaces.

A class that manages conversions between color spaces.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class CubeCamera(near: Double, far: Double, val renderTarget: Object) extends Object

Creates 6 cameras that render to a WebGLCubeRenderTarget.

Creates 6 cameras that render to a WebGLCubeRenderTarget.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class CubeTexture(var images: UndefOr[Array[Any]], mapping: UndefOr[Int], wrapS: UndefOr[Int], wrapT: UndefOr[Int], magFilter: UndefOr[Int], minFilter: UndefOr[Int], format: UndefOr[Int], `type`: UndefOr[Int], anisotropy: UndefOr[Int], colorSpace: UndefOr[String]) extends Texture

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 Texture
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class CubeTextureLoader(loadingManager: UndefOr[LoadingManager]) extends Object

Class for loading a CubeTexture.

Class for loading a CubeTexture.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class CubicInterpolant(parameterPositions: TypedArray[_, _], sampleValues: TypedArray[_, _], sampleSize: Int, resultBuffer: UndefOr[TypedArray[_, _]]) extends Interpolant

Cubic interpolant.

Cubic interpolant.

The cubic interpolant uses a cubic Hermite spline for interpolation. This provides a smooth interpolation between adjacent values.

Attributes

Supertypes
class Interpolant
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class Cylindrical(var radius: UndefOr[Double], var theta: UndefOr[Double], var y: UndefOr[Double]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class DataTexture(data: TypedArray[_, _], width: Int, height: Int, format: UndefOr[Int], `type`: UndefOr[Int], mapping: UndefOr[Int], wrapS: UndefOr[Int], wrapT: UndefOr[Int], magFilter: UndefOr[Int], minFilter: UndefOr[Int], anisotropy: UndefOr[Int], colorSpace: UndefOr[String]) extends Texture

Creates a texture directly from raw data, width and height.

Creates a texture directly from raw data, width and height.

Attributes

Supertypes
class Texture
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Default loading manager used by loaders if one isn't specified.

Default loading manager used by loaders if one isn't specified.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Self type
class DirectionalLight(color: Int | String | Color, intensity: Double) extends Light

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
class Light
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object DirectionalLight extends Object

Companion object for DirectionalLight with factory method

Companion object for DirectionalLight with factory method

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class DiscreteInterpolant(parameterPositions: TypedArray[_, _], sampleValues: TypedArray[_, _], sampleSize: Int, resultBuffer: UndefOr[TypedArray[_, _]]) extends Interpolant

Discrete interpolant.

Discrete interpolant.

The discrete interpolant returns the sample at the position closest to the parameter.

Attributes

Supertypes
class Interpolant
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class DodecahedronGeometry(radius: Double, detail: Int) extends PolyhedronGeometry

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 Object
trait Any
class Object
trait Matchable
class Any
Show all
object DodecahedronGeometry extends Object

Companion object for DodecahedronGeometry with factory method.

Companion object for DodecahedronGeometry with factory method.

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Euler(var x: Double, var y: Double, var z: Double, var order: String) extends Object

A class representing Euler Angles.

A class representing Euler Angles.

Attributes

Companion
object
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
object Euler extends Object

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Euler.type
class Frustum(var planes: UndefOr[Array[Plane]]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class GLTFLoader(manager: UndefOr[LoadingManager]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
trait GLTFResult extends Object

The result of loading a GLTF asset.

The result of loading a GLTF asset.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Group extends Object3D

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
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object Group extends Object

Companion object for Group with factory method.

Companion object for Group with factory method.

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Group.type
class IcosahedronGeometry(radius: Double, detail: Int) extends BufferGeometry

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
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class InstancedMesh(geometry: UndefOr[BufferGeometry], material: UndefOr[Material | Array[Material]], val count: UndefOr[Int]) extends Mesh

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.

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.

Attributes

Supertypes
class Mesh
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class Interpolant extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
Known subtypes
class Light(var color: Int | String | Color, var intensity: Double) extends Object3D

Abstract base class for lights.

Abstract base class for lights.

Attributes

Supertypes
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
class Line(var geometry: BufferGeometry, var material: Any) extends Object3D

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
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
class LineLoop
class LineSegments
object Line extends Object

Companion object for Line class

Companion object for Line class

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Line.type
class Line3(var start: UndefOr[Vector3], var end: UndefOr[Vector3]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class LineBasicMaterial(parameters: UndefOr[Object]) extends Material

A material for drawing wireframe-style geometries with solid lines.

A material for drawing wireframe-style geometries with solid lines.

Attributes

Supertypes
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class LineBasicMaterialParameters extends Object

Parameters for LineBasicMaterial.

Parameters for LineBasicMaterial.

Attributes

Companion
object
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class LineLoop extends Line

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
class Line
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object LineLoop extends Object

Companion object for LineLoop class

Companion object for LineLoop class

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
LineLoop.type
class LineMaterial(parameters: UndefOr[Dynamic]) extends Material

A material for drawing line segments with custom width.

A material for drawing line segments with custom width.

Attributes

Supertypes
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class LineSegments extends Line

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
class Line
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object LineSegments extends Object

Companion object for LineSegments class

Companion object for LineSegments class

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class LineSegments2(geometry: UndefOr[LineSegmentsGeometry], material: UndefOr[LineMaterial]) extends Mesh

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
class Mesh
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all

A specialized geometry for drawing line segments.

A specialized geometry for drawing line segments.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class LinearInterpolant(parameterPositions: TypedArray[_, _], sampleValues: TypedArray[_, _], sampleSize: Int, resultBuffer: UndefOr[TypedArray[_, _]]) extends Interpolant

Linear interpolant.

Linear interpolant.

The linear interpolant performs a simple linear interpolation between two adjacent values.

Attributes

Supertypes
class Interpolant
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object LinearSRGBColorSpace extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
object LinearToSRGB extends Function1[Double, Double]

Converts color component from linear to sRGB space

Converts color component from linear to sRGB space

Attributes

Supertypes
trait Function1[Double, Double]
class Function
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Self type
object LinearTransfer extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class LoadingManager(var onLoad: UndefOr[Function0[Unit]], var onProgress: UndefOr[Function3[String, Int, Int, Unit]], var onError: UndefOr[Function1[String, Unit]]) extends Object

Class for managing and tracking loaded and pending data.

Class for managing and tracking loaded and pending data.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes
class Material extends Object

Abstract base class for materials.

Abstract base class for materials.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes
object MathUtils extends Object

A collection of math utility functions.

A collection of math utility functions.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
MathUtils.type
object MathUtilsConstants extends Object

Constants and functions from MathUtils available as top-level exports

Constants and functions from MathUtils available as top-level exports

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
object MathUtilsFunctions extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Matrix3(n11: UndefOr[Double], n12: UndefOr[Double], n13: UndefOr[Double], n21: UndefOr[Double], n22: UndefOr[Double], n23: UndefOr[Double], n31: UndefOr[Double], n32: UndefOr[Double], n33: UndefOr[Double]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class Matrix4(n11: UndefOr[Double], n12: UndefOr[Double], n13: UndefOr[Double], n14: UndefOr[Double], n21: UndefOr[Double], n22: UndefOr[Double], n23: UndefOr[Double], n24: UndefOr[Double], n31: UndefOr[Double], n32: UndefOr[Double], n33: UndefOr[Double], n34: UndefOr[Double], n41: UndefOr[Double], n42: UndefOr[Double], n43: UndefOr[Double], n44: UndefOr[Double]) extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Mesh(var geometry: UndefOr[BufferGeometry], var material: UndefOr[Material | Array[Material]]) extends Object3D

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
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
class MeshBasicMaterial(parameters: UndefOr[Object]) extends Material

A material for drawing geometries in a simple shaded way.

A material for drawing geometries in a simple shaded way.

Attributes

Companion
object
Supertypes
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
trait MeshObject3D extends Object3D

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
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class MeshPhongMaterial(parameters: UndefOr[Object]) extends Material

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
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Companion object for MeshPhongMaterial with factory method

Companion object for MeshPhongMaterial with factory method

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object NoColorSpace extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Object3D extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
Known subtypes
class Camera
class ArrayCamera
class Group
class Light
class AmbientLight
class Line
class LineLoop
class LineSegments
class Mesh
trait MeshObject3D
class Points
class Scene
class Sprite
Show all
object Object3D extends Object

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Object3D.type
class OctahedronGeometry(radius: Double, detail: Int) extends PolyhedronGeometry

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 Object
trait Any
class Object
trait Matchable
class Any
Show all
object OctahedronGeometry extends Object

Companion object for OctahedronGeometry with factory method.

Companion object for OctahedronGeometry with factory method.

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class OrbitControls(camera: Camera, domElement: Element) extends Object

Orbit controls allow the camera to orbit around a target.

Orbit controls allow the camera to orbit around a target.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class OrthographicCamera(var left: Double, var right: Double, var top: Double, var bottom: Double, var near: Double, var far: Double) extends Camera

Camera that uses orthographic projection.

Camera that uses orthographic projection.

Attributes

Supertypes
class Camera
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class PerspectiveCamera(var fov: Double, var aspect: Double, var near: Double, var far: Double) extends Camera

Camera that uses perspective projection.

Camera that uses perspective projection.

Attributes

Supertypes
class Camera
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
class ArrayCamera
class Plane(var normal: UndefOr[Vector3], constant: UndefOr[Double]) extends Object

A class representing a plane in 3D space.

A class representing a plane in 3D space.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Points(var geometry: UndefOr[BufferGeometry], var material: UndefOr[Material | Array[Material]]) extends Object3D

A class for displaying points.

A class for displaying points.

Attributes

Companion
object
Supertypes
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
object Points extends Object

Companion object for Points with factory method.

Companion object for Points with factory method.

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Points.type
class PointsMaterial(parameters: UndefOr[Object]) extends Material

A material for drawing points.

A material for drawing points.

Attributes

Companion
object
Supertypes
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Companion object for PointsMaterial with factory methods.

Companion object for PointsMaterial with factory methods.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Parameters for PointsMaterial.

Parameters for PointsMaterial.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class PolyhedronGeometry(vertices: Array[Double], indices: Array[Double], radius: Double, detail: Int) extends BufferGeometry

A class for generating a polyhedron geometry.

A class for generating a polyhedron geometry.

Attributes

Companion
object
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
object PolyhedronGeometry extends Object

Companion object for PolyhedronGeometry with factory method.

Companion object for PolyhedronGeometry with factory method.

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Quaternion(var x: UndefOr[Double], var y: UndefOr[Double], var z: UndefOr[Double], var w: UndefOr[Double]) extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class QuaternionLinearInterpolant(parameterPositions: TypedArray[_, _], sampleValues: TypedArray[_, _], sampleSize: Int, resultBuffer: UndefOr[TypedArray[_, _]]) extends Interpolant

Quaternion Linear Interpolant.

Quaternion Linear Interpolant.

Interpolant for quaternions with spherical linear interpolation (SLERP). This interpolation ensures proper rotation interpolation.

Attributes

Supertypes
class Interpolant
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class Ray(var origin: UndefOr[Vector3], var direction: UndefOr[Vector3]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class Raycaster(var origin: UndefOr[Vector3], var direction: UndefOr[Vector3], var near: UndefOr[Double], var far: UndefOr[Double]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
trait RaycasterIntersection extends Object

The intersection point of a raycaster intersection test.

The intersection point of a raycaster intersection test.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
object SRGBColorSpace extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
object SRGBToLinear extends Function1[Double, Double]

Converts color component from sRGB to linear space

Converts color component from sRGB to linear space

Attributes

Supertypes
trait Function1[Double, Double]
class Function
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Self type
object SRGBTransfer extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Scene extends Object3D

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
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class Sphere(var center: UndefOr[Vector3], var radius: UndefOr[Double]) extends Object

A class representing a sphere in 3D space.

A class representing a sphere in 3D space.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Spherical(var radius: UndefOr[Double], var phi: UndefOr[Double], var theta: UndefOr[Double]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class SphericalHarmonics3 extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
object SphericalHarmonics3 extends Object

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Sprite(var material: UndefOr[SpriteMaterial]) extends Object3D

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
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class SpriteMaterial(parameters: UndefOr[Any]) extends Material

Materials for sprites.

Materials for sprites.

Attributes

Supertypes
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class StereoCamera extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class TetrahedronGeometry(radius: Double, detail: Int) extends PolyhedronGeometry

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 Object
trait Any
class Object
trait Matchable
class Any
Show all
object TetrahedronGeometry extends Object

Companion object for TetrahedronGeometry with factory method.

Companion object for TetrahedronGeometry with factory method.

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
class Texture(var image: UndefOr[Any], var mapping: UndefOr[Int], var wrapS: UndefOr[Int], var wrapT: UndefOr[Int], var magFilter: UndefOr[Int], var minFilter: UndefOr[Int], var format: UndefOr[Int], `type`: UndefOr[Int], var anisotropy: UndefOr[Int], var colorSpace: UndefOr[String]) extends Object

Base class for textures in THREE.js.

Base class for textures in THREE.js.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes
class TextureLoader(loadingManager: UndefOr[LoadingManager]) extends Object

Class for loading a texture.

Class for loading a texture.

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Triangle(var a: UndefOr[Vector3], var b: UndefOr[Vector3], var c: UndefOr[Vector3]) extends Object

A class representing a triangle in 3D space.

A class representing a triangle in 3D space.

Attributes

Companion
object
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
object Triangle extends Object

Attributes

Companion
class
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type
Triangle.type
class Vector2(var x: UndefOr[Double], var y: UndefOr[Double]) extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Vector3(var x: UndefOr[Double], var y: UndefOr[Double], var z: UndefOr[Double]) extends Object

Attributes

Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
class Vector4(var x: UndefOr[Double], var y: UndefOr[Double], var z: UndefOr[Double], var w: UndefOr[Double]) extends Object

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 Object
trait Any
class Object
trait Matchable
class Any
class VideoTexture(video: Video, mapping: UndefOr[Int], wrapS: UndefOr[Int], wrapT: UndefOr[Int], magFilter: UndefOr[Int], minFilter: UndefOr[Int], format: UndefOr[Int], `type`: UndefOr[Int], anisotropy: UndefOr[Int]) extends Texture

Creates a texture for use with a video.

Creates a texture for use with a video.

Attributes

Supertypes
class Texture
class Object
trait Any
class Object
trait Matchable
class Any
Show all
class WebGLRenderer(parameters: UndefOr[Object]) extends Object

The WebGL renderer displays your scenes using WebGL.

The WebGL renderer displays your scenes using WebGL.

Attributes

Companion
object
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
object WebGLRenderer

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type