t3d

The t3d namespace.

Classes

AmbientLight
AnimationAction
AnimationMixer
Attribute
BasicMaterial
Bone
BooleanKeyframeTrack
Box2
Box3
BoxGeometry
Buffer
Camera
Color3
ColorKeyframeTrack
CubicSplineInterpolant
CylinderGeometry
DepthMaterial
DirectionalLight
DirectionalLightShadow
DistanceMaterial
Euler
EventDispatcher
FileLoader
Fog
FogExp2
Frustum
Geometry
HemisphereLight
ImageLoader
KeyframeClip
KeyframeInterpolant
KeyframeTrack
LambertMaterial
Light
LightShadow
LineMaterial
LinearInterpolant
Loader
LoadingManager
Material
Matrix3
Matrix4
Mesh
NumberKeyframeTrack
Object3D
PBR2Material
PBRMaterial
PhongMaterial
Plane
PlaneGeometry
PointLight
PointLightShadow
PointsMaterial
PropertyBindingMixer
PropertyMap
Quaternion
QuaternionCubicSplineInterpolant
QuaternionKeyframeTrack
QuaternionLinearInterpolant
Query
Ray
RectAreaLight
RenderBuffer
RenderInfo
RenderQueue
RenderQueueLayer
RenderStates
RenderTarget2D
RenderTarget2DArray
RenderTarget3D
RenderTargetBack
RenderTargetBase
RenderTargetCube
Scene
SceneData
ShaderMaterial
ShaderPostPass
ShadowMapPass
Skeleton
SkinnedMesh
Sphere
SphereGeometry
Spherical
SphericalHarmonics3
SphericalHarmonicsLight
SpotLight
SpotLightShadow
StepInterpolant
StringKeyframeTrack
Texture2D
Texture2DArray
Texture3D
TextureBase
TextureCube
ThinRenderer
TorusKnotGeometry
Triangle
Vector2
Vector3
Vector4
VectorKeyframeTrack
WebGLRenderer

Members

(static, constant) ATTACHMENT :Number

Enum for ATTACHMENT
Type:
  • Number
Properties
NameTypeDescription
COLOR_ATTACHMENT0Number
COLOR_ATTACHMENT1Number
COLOR_ATTACHMENT2Number
COLOR_ATTACHMENT3Number
COLOR_ATTACHMENT4Number
COLOR_ATTACHMENT5Number
COLOR_ATTACHMENT6Number
COLOR_ATTACHMENT7Number
COLOR_ATTACHMENT8Number
COLOR_ATTACHMENT9Number
COLOR_ATTACHMENT10Number
COLOR_ATTACHMENT11Number
COLOR_ATTACHMENT12Number
COLOR_ATTACHMENT13Number
COLOR_ATTACHMENT14Number
COLOR_ATTACHMENT15Number
DEPTH_ATTACHMENTNumber
STENCIL_ATTACHMENTNumber
DEPTH_STENCIL_ATTACHMENTNumber

(static, constant) BLEND_EQUATION :Number

Enum for blend equation.
Type:
  • Number
Properties
NameTypeDescription
ADDNumber
SUBTRACTNumber
REVERSE_SUBTRACTNumber
MINNumberOnly webgl2
MAXNumber

(static, constant) BLEND_FACTOR :Number

Enum for blend factor.
Type:
  • Number
Properties
NameTypeDescription
ZERONumber
ONENumber
SRC_COLORNumber
SRC_ALPHANumber
SRC_ALPHA_SATURATENumber
DST_COLORNumber
DST_ALPHANumber
ONE_MINUS_SRC_COLORNumber
ONE_MINUS_SRC_ALPHANumber
ONE_MINUS_DST_COLORNumber
ONE_MINUS_DST_ALPHANumber

(static, constant) BLEND_TYPE :String

Enum for blend Type.
Type:
  • String
Properties
NameTypeDescription
NONEString
NORMALString
ADDString
SUBString
MULString
CUSTOMString

(static, constant) BUFFER_USAGE :Number

Enum for BUFFER_USAGE
Type:
  • Number
Properties
NameTypeDescription
STREAM_DRAWNumber
STREAM_READNumber
STREAM_COPYNumber
STATIC_DRAWNumber
STATIC_READNumber
STATIC_COPYNumber
DYNAMIC_DRAWNumber
DYNAMIC_READNumber
DYNAMIC_COPYNumber

(static, constant) COMPARE_FUNC :Number

Enum for compare function.
Type:
  • Number
Properties
NameTypeDescription
LEQUALNumber
GEQUALNumber
LESSNumber
GREATERNumber
EQUALNumber
NOTEQUALNumber
ALWAYSNumber
NEVERNumber

(static, constant) CULL_FACE_TYPE :String

Enum for cull face Type.
Type:
  • String
Properties
NameTypeDescription
NONEString
FRONTString
BACKString
FRONT_AND_BACKString

(static, constant) DRAW_MODE :Number

Enum for Draw Mode.
Type:
  • Number
Properties
NameTypeDescription
POINTSNumber
LINESNumber
LINE_LOOPNumber
LINE_STRIPNumber
TRIANGLESNumber
TRIANGLE_STRIPNumber
TRIANGLE_FANNumber

(static, constant) DRAW_SIDE :String

Enum for draw side.
Type:
  • String
Properties
NameTypeDescription
FRONTString
BACKString
DOUBLEString

(static, constant) DefaultLoadingManager

A global instance of the t3d.LoadingManager, used by most loaders when no custom manager has been specified. This will be sufficient for most purposes, however there may be times when you desire separate loading managers for say, textures and models.

(static, constant) ENVMAP_COMBINE_TYPE :String

Enum for Envmap Combine Type.
Type:
  • String
Properties
NameTypeDescription
MULTIPLYString
MIXString
ADDString

(static, constant) MATERIAL_TYPE :String

Enum for material Type.
Type:
  • String
Properties
NameTypeDescription
BASICString
LAMBERTString
PHONGString
PBRString
PBR2String
POINTString
LINEString
SHADERString
DEPTHString
DISTANCEString

(static, constant) OPERATION :Number

Enum for operation.
Type:
  • Number
Properties
NameTypeDescription
KEEPNumber
REPLACENumber
INCRNumber
DECRNumber
INVERTNumber
INCR_WRAPNumber
DECR_WRAPNumber

(static, constant) PIXEL_FORMAT :Number

Enum for pixel format.
Type:
  • Number
Properties
NameTypeDescription
DEPTH_COMPONENTNumber
DEPTH_STENCILNumber
STENCIL_INDEX8Number
ALPHANumber
REDNumber
RGBNumber
RGBANumber
LUMINANCENumber
LUMINANCE_ALPHANumber
RED_INTEGERNumberOnly webgl2
RGNumber
RG_INTEGERNumber
RGB_INTEGERNumber
RGBA_INTEGERNumber
R32FNumberOnly internal formats and webgl2
R16FNumber
R8Number
RG32FNumber
RG16FNumber
RG8Number
RGB32FNumber
RGB16FNumber
RGB8Number
RGBA32FNumber
RGBA16FNumber
RGBA8Number
RGBA4Number
RGB5_A1Number
DEPTH_COMPONENT32FNumber
DEPTH_COMPONENT24Number
DEPTH_COMPONENT16Number
DEPTH24_STENCIL8Number
DEPTH32F_STENCIL8Number
R11F_G11F_B10FNumber
RGB_S3TC_DXT1NumberFor compressed texture formats
RGBA_S3TC_DXT1Number
RGBA_S3TC_DXT3Number
RGBA_S3TC_DXT5Number
RGB_PVRTC_4BPPV1Number
RGB_PVRTC_2BPPV1Number
RGBA_PVRTC_4BPPV1Number
RGBA_PVRTC_2BPPV1Number
RGB_ETC1Number
RGBA_ASTC_4x4Number
RGBA_BPTCNumber

(static, constant) PIXEL_TYPE :Number

Enum for pixel Type.
Type:
  • Number
Properties
NameTypeDescription
UNSIGNED_BYTENumber
UNSIGNED_SHORT_5_6_5Number
UNSIGNED_SHORT_4_4_4_4Number
UNSIGNED_SHORT_5_5_5_1Number
UNSIGNED_SHORTNumber
UNSIGNED_INTNumber
UNSIGNED_INT_24_8Number
FLOATNumber
HALF_FLOATNumber
FLOAT_32_UNSIGNED_INT_24_8_REVNumber
BYTENumber
SHORTNumber
INTNumber

(static, constant) QUERY_TYPE :Number

Enum for QUERY_TYPE
Type:
  • Number
Properties
NameTypeDescription
ANY_SAMPLES_PASSEDNumber
ANY_SAMPLES_PASSED_CONSERVATIVENumber
TIME_ELAPSEDNumber

(static, constant) SHADING_TYPE :String

Enum for shading side.
Type:
  • String
Properties
NameTypeDescription
SMOOTH_SHADINGString
FLAT_SHADINGString

(static, constant) SHADOW_TYPE :String

Enum for Shadow Type.
Type:
  • String
Properties
NameTypeDescription
HARDString
POISSON_SOFTString
PCF3_SOFTString
PCF5_SOFTString
PCSS16_SOFTStringOnly webgl2
PCSS32_SOFTString
PCSS64_SOFTString

(static, constant) TEXEL_ENCODING_TYPE :String

Enum for Texel Encoding Type.
Type:
  • String
Properties
NameTypeDescription
LINEARString
SRGBString
GAMMAString

(static, constant) TEXTURE_FILTER :Number

Enum for texture filter.
Type:
  • Number
Properties
NameTypeDescription
NEARESTNumber
LINEARNumber
NEAREST_MIPMAP_NEARESTNumber
LINEAR_MIPMAP_NEARESTNumber
NEAREST_MIPMAP_LINEARNumber
LINEAR_MIPMAP_LINEARNumber

(static, constant) TEXTURE_WRAP :Number

Enum for texture wrap.
Type:
  • Number
Properties
NameTypeDescription
REPEATNumber
CLAMP_TO_EDGENumber
MIRRORED_REPEATNumber

(static, constant) VERTEX_COLOR :Number

Enum for Vertex Color.
Type:
  • Number
Properties
NameTypeDescription
NONENumber
RGBNumber
RGBANumber

Methods

(static) cloneJson(obj) → {Object}

Clone json. This is faster than JSON.parse(JSON.stringify()).
Parameters:
NameTypeDescription
objObjectThe input json.
Returns:
- The output json.
Type: 
Object

(static) cloneUniforms(value) → {Object}

Clone uniforms.
Parameters:
NameTypeDescription
valueObjectThe input uniforms.
Returns:
- The output uniforms.
Type: 
Object

Type Definitions

RenderOptions

The render options for renderRenderableItem and renderRenderableList methods.
Type:
  • Object
Properties
NameTypeDescription
getGeometryfunction(Optional) Get renderable geometry.
getMaterialfunction(Optional) Get renderable material.
beforeRenderfunction(Optional) Before render each renderable item.
afterRenderfunction(Optional) After render each renderable item.
ifRenderfunction(Optional) If render the renderable item.
renderInfot3d.RenderInfo(Optional) Render info for collect information.
onlyCompileBoolean(Optional) Only compile shader, do not render.