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:
Properties- Number
Name | Type | Description |
---|---|---|
COLOR_ATTACHMENT0 | Number | |
COLOR_ATTACHMENT1 | Number | |
COLOR_ATTACHMENT2 | Number | |
COLOR_ATTACHMENT3 | Number | |
COLOR_ATTACHMENT4 | Number | |
COLOR_ATTACHMENT5 | Number | |
COLOR_ATTACHMENT6 | Number | |
COLOR_ATTACHMENT7 | Number | |
COLOR_ATTACHMENT8 | Number | |
COLOR_ATTACHMENT9 | Number | |
COLOR_ATTACHMENT10 | Number | |
COLOR_ATTACHMENT11 | Number | |
COLOR_ATTACHMENT12 | Number | |
COLOR_ATTACHMENT13 | Number | |
COLOR_ATTACHMENT14 | Number | |
COLOR_ATTACHMENT15 | Number | |
DEPTH_ATTACHMENT | Number | |
STENCIL_ATTACHMENT | Number | |
DEPTH_STENCIL_ATTACHMENT | Number |
(static, constant) BLEND_EQUATION :Number
Enum for blend equation.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
ADD | Number | |
SUBTRACT | Number | |
REVERSE_SUBTRACT | Number | |
MIN | Number | Only webgl2 |
MAX | Number |
(static, constant) BLEND_FACTOR :Number
Enum for blend factor.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
ZERO | Number | |
ONE | Number | |
SRC_COLOR | Number | |
SRC_ALPHA | Number | |
SRC_ALPHA_SATURATE | Number | |
DST_COLOR | Number | |
DST_ALPHA | Number | |
ONE_MINUS_SRC_COLOR | Number | |
ONE_MINUS_SRC_ALPHA | Number | |
ONE_MINUS_DST_COLOR | Number | |
ONE_MINUS_DST_ALPHA | Number |
(static, constant) BLEND_TYPE :String
Enum for blend Type.
Type:
Properties- String
Name | Type | Description |
---|---|---|
NONE | String | |
NORMAL | String | |
ADD | String | |
SUB | String | |
MUL | String | |
CUSTOM | String |
(static, constant) BUFFER_USAGE :Number
Enum for BUFFER_USAGE
Type:
Properties- Number
Name | Type | Description |
---|---|---|
STREAM_DRAW | Number | |
STREAM_READ | Number | |
STREAM_COPY | Number | |
STATIC_DRAW | Number | |
STATIC_READ | Number | |
STATIC_COPY | Number | |
DYNAMIC_DRAW | Number | |
DYNAMIC_READ | Number | |
DYNAMIC_COPY | Number |
(static, constant) COMPARE_FUNC :Number
Enum for compare function.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
LEQUAL | Number | |
GEQUAL | Number | |
LESS | Number | |
GREATER | Number | |
EQUAL | Number | |
NOTEQUAL | Number | |
ALWAYS | Number | |
NEVER | Number |
(static, constant) CULL_FACE_TYPE :String
Enum for cull face Type.
Type:
Properties- String
Name | Type | Description |
---|---|---|
NONE | String | |
FRONT | String | |
BACK | String | |
FRONT_AND_BACK | String |
(static, constant) DRAW_MODE :Number
Enum for Draw Mode.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
POINTS | Number | |
LINES | Number | |
LINE_LOOP | Number | |
LINE_STRIP | Number | |
TRIANGLES | Number | |
TRIANGLE_STRIP | Number | |
TRIANGLE_FAN | Number |
(static, constant) DRAW_SIDE :String
Enum for draw side.
Type:
Properties- String
Name | Type | Description |
---|---|---|
FRONT | String | |
BACK | String | |
DOUBLE | String |
(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:
Properties- String
Name | Type | Description |
---|---|---|
MULTIPLY | String | |
MIX | String | |
ADD | String |
(static, constant) MATERIAL_TYPE :String
Enum for material Type.
Type:
Properties- String
Name | Type | Description |
---|---|---|
BASIC | String | |
LAMBERT | String | |
PHONG | String | |
PBR | String | |
PBR2 | String | |
POINT | String | |
LINE | String | |
SHADER | String | |
DEPTH | String | |
DISTANCE | String |
(static, constant) OPERATION :Number
Enum for operation.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
KEEP | Number | |
REPLACE | Number | |
INCR | Number | |
DECR | Number | |
INVERT | Number | |
INCR_WRAP | Number | |
DECR_WRAP | Number |
(static, constant) PIXEL_FORMAT :Number
Enum for pixel format.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
DEPTH_COMPONENT | Number | |
DEPTH_STENCIL | Number | |
STENCIL_INDEX8 | Number | |
ALPHA | Number | |
RED | Number | |
RGB | Number | |
RGBA | Number | |
LUMINANCE | Number | |
LUMINANCE_ALPHA | Number | |
RED_INTEGER | Number | Only webgl2 |
RG | Number | |
RG_INTEGER | Number | |
RGB_INTEGER | Number | |
RGBA_INTEGER | Number | |
R32F | Number | Only internal formats and webgl2 |
R16F | Number | |
R8 | Number | |
RG32F | Number | |
RG16F | Number | |
RG8 | Number | |
RGB32F | Number | |
RGB16F | Number | |
RGB8 | Number | |
RGBA32F | Number | |
RGBA16F | Number | |
RGBA8 | Number | |
RGBA4 | Number | |
RGB5_A1 | Number | |
DEPTH_COMPONENT32F | Number | |
DEPTH_COMPONENT24 | Number | |
DEPTH_COMPONENT16 | Number | |
DEPTH24_STENCIL8 | Number | |
DEPTH32F_STENCIL8 | Number | |
R11F_G11F_B10F | Number | |
RGB_S3TC_DXT1 | Number | For compressed texture formats |
RGBA_S3TC_DXT1 | Number | |
RGBA_S3TC_DXT3 | Number | |
RGBA_S3TC_DXT5 | Number | |
RGB_PVRTC_4BPPV1 | Number | |
RGB_PVRTC_2BPPV1 | Number | |
RGBA_PVRTC_4BPPV1 | Number | |
RGBA_PVRTC_2BPPV1 | Number | |
RGB_ETC1 | Number | |
RGBA_ASTC_4x4 | Number | |
RGBA_BPTC | Number |
(static, constant) PIXEL_TYPE :Number
Enum for pixel Type.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
UNSIGNED_BYTE | Number | |
UNSIGNED_SHORT_5_6_5 | Number | |
UNSIGNED_SHORT_4_4_4_4 | Number | |
UNSIGNED_SHORT_5_5_5_1 | Number | |
UNSIGNED_SHORT | Number | |
UNSIGNED_INT | Number | |
UNSIGNED_INT_24_8 | Number | |
FLOAT | Number | |
HALF_FLOAT | Number | |
FLOAT_32_UNSIGNED_INT_24_8_REV | Number | |
BYTE | Number | |
SHORT | Number | |
INT | Number |
(static, constant) QUERY_TYPE :Number
Enum for QUERY_TYPE
Type:
Properties- Number
Name | Type | Description |
---|---|---|
ANY_SAMPLES_PASSED | Number | |
ANY_SAMPLES_PASSED_CONSERVATIVE | Number | |
TIME_ELAPSED | Number |
(static, constant) SHADING_TYPE :String
Enum for shading side.
Type:
Properties- String
Name | Type | Description |
---|---|---|
SMOOTH_SHADING | String | |
FLAT_SHADING | String |
(static, constant) SHADOW_TYPE :String
Enum for Shadow Type.
Type:
Properties- String
Name | Type | Description |
---|---|---|
HARD | String | |
POISSON_SOFT | String | |
PCF3_SOFT | String | |
PCF5_SOFT | String | |
PCSS16_SOFT | String | Only webgl2 |
PCSS32_SOFT | String | |
PCSS64_SOFT | String |
(static, constant) TEXEL_ENCODING_TYPE :String
Enum for Texel Encoding Type.
Type:
Properties- String
Name | Type | Description |
---|---|---|
LINEAR | String | |
SRGB | String | |
GAMMA | String |
(static, constant) TEXTURE_FILTER :Number
Enum for texture filter.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
NEAREST | Number | |
LINEAR | Number | |
NEAREST_MIPMAP_NEAREST | Number | |
LINEAR_MIPMAP_NEAREST | Number | |
NEAREST_MIPMAP_LINEAR | Number | |
LINEAR_MIPMAP_LINEAR | Number |
(static, constant) TEXTURE_WRAP :Number
Enum for texture wrap.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
REPEAT | Number | |
CLAMP_TO_EDGE | Number | |
MIRRORED_REPEAT | Number |
(static, constant) VERTEX_COLOR :Number
Enum for Vertex Color.
Type:
Properties- Number
Name | Type | Description |
---|---|---|
NONE | Number | |
RGB | Number | |
RGBA | Number |
Methods
(static) cloneJson(obj) → {Object}
Clone json. This is faster than JSON.parse(JSON.stringify()).
Parameters:
Name | Type | Description |
---|---|---|
obj | Object | The input json. |
Returns:
- The output json.
- Type:
- Object
(static) cloneUniforms(value) → {Object}
Clone uniforms.
Parameters:
Name | Type | Description |
---|---|---|
value | Object | The input uniforms. |
Returns:
- The output uniforms.
- Type:
- Object
Type Definitions
RenderOptions
The render options for renderRenderableItem and renderRenderableList methods.
Type:
Properties- Object
Name | Type | Description |
---|---|---|
getGeometry | function | (Optional) Get renderable geometry. |
getMaterial | function | (Optional) Get renderable material. |
beforeRender | function | (Optional) Before render each renderable item. |
afterRender | function | (Optional) After render each renderable item. |
ifRender | function | (Optional) If render the renderable item. |
renderInfo | t3d. | (Optional) Render info for collect information. |
onlyCompile | Boolean | (Optional) Only compile shader, do not render. |