Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Dec 27, 2024
1 parent 95a0cd7 commit 02809f0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/client/scripts/esm/game/rendering/buffermodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ interface BufferModel extends BaseBufferModel {
* If this is modified, we can use updateBufferIndices() to pass those changes
* on to the gpu, without having to create a new buffer model! */
data: Float32Array,
/**
* **Call this** when you update specific vertex data within the source Float32Array!
* FAST. Prevents you having to create a whole new model!
* For example, when a single piece in the mesh moves.
* @param {number} changedIndicesStart - The index in the vertex data marking the first value changed.
* @param {number} changedIndicesCount - The number of indices in the vertex data that were changed, beginning at {@link changedIndicesStart}.
*/
updateBufferIndices: UpdateBufferIndicesFunc,
}

Expand Down Expand Up @@ -124,9 +117,8 @@ function createModel(
}

/**
* The universal function for creating a renderable model,
* given the vertex data, attribute information,
* primitive rendering mode, and texture.
* The universal function for creating a renderable model THAT USES INSTANCED RENDERING,
* given the vertex data and instance data, both attribute informations, primitive rendering mode, and texture!
*/
function createModel_Instanced(
/** The array of vertex data of a single instance of the mesh. */
Expand Down

0 comments on commit 02809f0

Please sign in to comment.