mirror of
https://github.com/galacean/engine.git
synced 2026-06-21 20:52:48 +08:00
refactor(chunk): delete MAX_VERTEX_COUNT from PrimitiveChunkManager (#2271)
This commit is contained in:
@@ -6,14 +6,11 @@ import { SubPrimitiveChunk } from "./SubPrimitiveChunk";
|
||||
* @internal
|
||||
*/
|
||||
export class PrimitiveChunkManager {
|
||||
/** The maximum number of vertex. */
|
||||
static MAX_VERTEX_COUNT = 4096;
|
||||
|
||||
primitiveChunks = new Array<PrimitiveChunk>();
|
||||
|
||||
constructor(
|
||||
public engine: Engine,
|
||||
public maxVertexCount = PrimitiveChunkManager.MAX_VERTEX_COUNT
|
||||
public maxVertexCount = 4096
|
||||
) {}
|
||||
|
||||
allocateSubChunk(vertexCount: number): SubPrimitiveChunk {
|
||||
|
||||
Reference in New Issue
Block a user