On this page

Type Alias Object3D<Attribute, Uniform>

type Object3D<Attribute extends string, Uniform extends string> = {
    indexBuffer?: WebGLBuffer;
    indexBufferLength?: number;
    positionBuffer: WebGLBuffer;
    programInfo: {
        attributesLocations: Record<Attribute, number>;
        uniformsLocations: Record<Uniform, WebGLUniformLocation>;
    };
    shaderProgram: WebGLProgram;
}

Type Parameters

  • Attribute extends string
  • Uniform extends string
Index

Properties

indexBuffer?: WebGLBuffer
indexBufferLength?: number
positionBuffer: WebGLBuffer
programInfo: {
    attributesLocations: Record<Attribute, number>;
    uniformsLocations: Record<Uniform, WebGLUniformLocation>;
}
shaderProgram: WebGLProgram
Was this helpful?
SDK JS
Reference
Object3D