Camera projection, upload lights and global uniforms, issue draw calls

This commit is contained in:
2023-08-05 15:41:10 +02:00
parent be350c5f4f
commit 23309903e8
9 changed files with 284 additions and 28 deletions

View File

@@ -116,6 +116,9 @@ export class IndexBuffer {
indexCount,
});
}
get indexFormat(): "uint16" | "uint32" { return this._indexFormat; }
get indexSize(): number { return indexSize(this._indexFormat); }
}
Object.defineProperty(IndexBuffer.prototype, "type", { value: "IndexBuffer" });