Home Reference Source
public class | source

BlendShapeGeometry

Extends:

GLBoostObjectGeometry → BlendShapeGeometry

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *)

Member Summary

Public Members
public set
public get
public set
public get
public get
public set
public set
public get
public set
public get
public set
public get
public set
public get
public get
public set
public set
public get
public set
public get
Private Members
private
private
private
private
private
private
private
private
private
private
private
private
private

_materialForBlend: Object | nullliteral

Method Summary

Public Methods
public

draw(data: Object)

public

prepareToRender(expression: *, existCamera_f: *, pointLight: *, meshMaterial: *, mesh: *)

Private Methods
private

_setBlendWeightToGlslProgram(blendTargetNumber: number, weight: number)

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private
From class Geometry
public get

AABB: *

public get
public get
public set
public get

rawAABB: *

private

_AABB: *

private
private
private
private
private
private

_materials: *[]

private
private
private

_vboObj: {}

private
private
private
public

draw(data: *)

public
public

getExtraDataForShader(name: *): *

public
public

getTriangleCount(mesh: *): *

public
public

isIndexed(): *

public

isTransparent(mesh: *): *

public

merge(geometrys: *)

public

mergeHarder(geometrys: *)

public

mergeHarderInner(geometry: *, typedArrayDic: *, isFirst: *)

take no thought geometry's materials

public

mergeInner(geometry: *, typedArrayDic: *, isFirst: *)

public

prepareGLSLProgram(expression: *, material: *, existCamera_f: *, lights: *, shaderClass: *, argShaderInstance: *): *

public

prepareToRender(expression: *, existCamera_f: *, lights: *, meshMaterial: *, mesh: *, shaderClass: *, argMaterials: *): *

public

rayCast(origVec3: *, dirVec3: *, isFrontFacePickable: *, isBackFacePickable: *): undefined[]

public

setExtraDataForShader(name: *, value: *)

public

setUpDisableAllVertexAttribArrays(gl: *, glslProgram: *)

public

setUpDisableVertexAttribArrays(gl: *, glslProgram: *, allVertexAttribs: *)

public

setUpEnableVertexAttribArrays(gl: *, glslProgram: *, allVertexAttribs: *)

public

setUpVertexAttribs(gl: *, glslProgram: *, allVertexAttribs: *)

public

setVerticesData(vertices: *, indicesArray: *, primitiveType: *, performanceHint: *)

public

updateVerticesData(vertices: *, skipUpdateAABB: *): boolean

private

_allVertexAttribs(vertices: *): *

return all vertex attribute name list

private

_calcArenbergInverseMatrices(primitiveType: *)

private

_calcArenbergMatrixFor3Vertices(vertexIndices: *, i: *, pos0IndexBase: *, pos1IndexBase: *, pos2IndexBase: *, incrementNum: *): number

private

_calcBaryCentricCoord(vertexNum: *, positionElementNumPerVertex: *)

private

_calcTangent(vertexNum: *, positionElementNumPerVertex: *, texcoordElementNumPerVertex: *, primitiveType: *)

private

_calcTangentFor3Vertices(vertexIndices: *, i: *, pos0IndexBase: *, pos1IndexBase: *, pos2IndexBase: *, uv0IndexBase: *, uv1IndexBase: *, uv2IndexBase: *, incrementNum: *)

private

_calcTangentPerVertex(pos0Vec3: *, pos1Vec3: *, pos2Vec3: *, uv0Vec2: *, uv1Vec2: *, uv2Vec2: *): *

private

_checkAndSetVertexComponentNumber(allVertexAttribs: *)

private

_createShaderInstance(glBoostContext: *, shaderClass: *): *

private
private
private

_getVAO(): *

private

_rayCastInner(origVec3: *, dirVec3: *, i: *, pos0IndexBase: *, pos1IndexBase: *, pos2IndexBase: *, isFrontFacePickable: *, isBackFacePickable: *): undefined[]

private

_setUpVertexAttibsWrapper(glslProgram: *)

private

_setVertexNtoSingleMaterial(material: *, index: *)

Public Constructors

public constructor(glBoostContext: *) source

Override:

Geometry#constructor

Params:

NameTypeAttributeDescription
glBoostContext *

Public Members

public set blendWeight_1: number source

public get blendWeight_1: * source

public set blendWeight_10: number source

public get blendWeight_10: * source

public get blendWeight_2: * source

public set blendWeight_2: number source

public set blendWeight_3: number source

public get blendWeight_3: * source

public set blendWeight_4: number source

public get blendWeight_4: * source

public set blendWeight_5: number source

public get blendWeight_5: * source

public set blendWeight_6: number source

public get blendWeight_6: * source

public get blendWeight_7: * source

public set blendWeight_7: number source

public set blendWeight_8: number source

public get blendWeight_8: * source

public set blendWeight_9: number source

public get blendWeight_9: * source

Private Members

private _blendWeight_1: number source

private _blendWeight_10: number source

private _blendWeight_2: number source

private _blendWeight_3: number source

private _blendWeight_4: number source

private _blendWeight_5: number source

private _blendWeight_6: number source

private _blendWeight_7: number source

private _blendWeight_8: number source

private _blendWeight_9: number source

private _currentRenderPassIndex: number source

private _glContext: Object source

Override:

GLBoostObject#_glContext

private _materialForBlend: Object | nullliteral source

Public Methods

public draw(data: Object) source

Override:

Geometry#draw

Params:

NameTypeAttributeDescription
data Object

public prepareToRender(expression: *, existCamera_f: *, pointLight: *, meshMaterial: *, mesh: *) source

Override:

Geometry#prepareToRender

Params:

NameTypeAttributeDescription
expression *
existCamera_f *
pointLight *
meshMaterial *
mesh *

Private Methods

private _setBlendWeightToGlslProgram(blendTargetNumber: number, weight: number) source

Params:

NameTypeAttributeDescription
blendTargetNumber number
weight number