Properties
bufferType
bufferType: string
buffers
buffers: Record<string, WebGLBuffer> = {}
buffersSize
buffersSize: Record<string, number> = {}
config
config: BaseMeshConfig
depthMask
depthMask: boolean = true
depthTest
depthTest: boolean = true
drawType
drawType: string = 'LINE_STRIP'
gl
gl: WebGL2RenderingContext
indices
indices: number[] = []
indicesPointer
indicesPointer: WebGLBuffer
shaderProgram
shaderProgram: WebGLProgram
shaders
shaders: {
fragment: string;
vertex: string;
} = ...
Type declaration
fragment: string
vertex: string
texture
texture: WebGLTexture
transparent
transparent: boolean = true
uniformData
uniformData: Record<string, {
texture?: WebGLTexture;
type: string;
value: number | number[] | Float32Array;
}> = ...
Type declaration
Optional
texture?: WebGLTexture
type: string
value: number | number[] | Float32Array
uniformLocations
uniformLocations: {} = {}
uniformsNeedUpdate
uniformsNeedUpdate: boolean = true
visible
visible: boolean = true
Base 基类方便继承以实现其他类型的情况