Methods Show Inherited
-
logGLResource(){string}
-
打印所有 gl 资源
Returns:
Type Description string gl资源数量字符串
Type Definitions
-
EventMixinCallback(e)
-
Name Type Description e
Object 事件对象
Name Type Description type
string 事件类型
detail
any 事件数据
target
any 事件触发对象
stageX
number 鼠标相对 stage 的 x 偏移 ( 仅鼠标事件有效 )
stageY
number 鼠标相对 stage 的 y 偏移 ( 仅鼠标事件有效 )
eventTarget
Node 触发鼠标事件的对象 ( 仅鼠标事件有效 )
eventCurrentTarget
Node 监听鼠标事件的对象 ( 仅鼠标事件有效 )
hitPoint
Vector3 鼠标碰撞点 ( 仅鼠标事件有效 )
-
Boundsobject
-
包围盒信息
-
raycastInfoobject
-
碰撞信息
-
NodeTraverseCallback(node){any}
-
Node traverse 回调
Name Type Description node
Node Returns:
Type Description any Node.TRAVERSE_STOP_NONE | Node.TRAVERSE_STOP_CHILDREN | Node.TRAVERSE_STOP_ALL -
NodeGetChildByCallback(node){boolean}
-
Node getChildByCallback 回调
Name Type Description node
Node Returns:
Type Description boolean -
GeometryDataTraverseCallback(attribute, index, offset)
-
Name Type Description attribute
Number | Vector2 | Vector3 | Vector4 index
Number offset
Number -
GeometryDataTraverseByComponentCallback(component, index, offset)
-
Name Type Description component
Number index
Number offset
Number -
updateCustomInfoCallback(lightManager, camera)
-
更新自定义灯光回调
Name Type Description lightManager
LightManager camera
Camera -
GLTFModelobject
-
GLTFLoader 模型加载完返回的对象格式
Properties:
Name Type Argument Description json
Object 原始数据
node
Node <optional>
模型的根节点
meshes
Array.<Mesh> <optional>
模型的所有Mesh对象数组
anim
Animation <optional>
模型的动画对象数组,没有动画的话为null
cameras
Array.<Camera> <optional>
模型中的所有Camera对象数组
lights
Array.<Light> <optional>
模型中的所有Light对象数组
textures
Array.<Texture> <optional>
模型中的所有Texture对象数组
materials
Array.<BasicMaterial> <optional>
模型中的所有Material对象数组
skins
Array.<Skeleton> <optional>
模型中的所有Skeleton对象数组
-
semanticObjectobject
-
semantic 对象
-
XYZObjectobject
-
含x, y, z属性的对象
-
AttachmentInfoobject
-
Properties:
Name Type Description attachmentType
'TEXTURE' | 'RENDERBUFFER' framebufferTarget
GLenum attachment
GLenum samples
number target
GLenum internalFormat
GLenum format
GLenum type
GLenum minFilter
GLenum magFilter
GLenum wrapS
GLenum wrapT
GLenum data
TypedArray texture
Texture renderbuffer
WebGLRenderbuffer -
RenderListTraverseCallback(mesh)
-
Name Type Description mesh
Mesh -
RenderListInstancedTraverseCallback(meshes)
-
Name Type Description meshes
Array.<Mesh> -
AttributeObjectobject
-
顶点对象
Properties:
Name Type Description attribute
Object buffer
WebGLBuffer geometryData
GeometryData useInstanced
Boolean -
ANGLEInstancedArraysany
-
-
OESVertexArrayObjectany
-
-
OESTextureFloatany
-
-
EXTFragDepthany
-
-
WebGLLoseContextany
-
-
EXTTextureFilterAnisotropicany
-
-
EXT_sRGBany
-
-
WEBGLDrawBuffersany
-
-
glTypeInfoObject