diff --git a/basic-3d-rendering/input-geometry/index-buffer.md b/basic-3d-rendering/input-geometry/index-buffer.md index e7d37c3..5be0085 100644 --- a/basic-3d-rendering/input-geometry/index-buffer.md +++ b/basic-3d-rendering/input-geometry/index-buffer.md @@ -71,8 +71,6 @@ std::vector indexData = { 0, 1, 2, // Triangle #0 connects points #0, #1 and #2 0, 2, 3 // Triangle #1 connects points #0, #2 and #3 }; - -int indexCount = static_cast(indexData.size()); ``` The index data must have type `uint16_t` or `uint32_t`. The former is more compact but limited to $2^{16} = 65 536$ vertices. @@ -80,7 +78,7 @@ The index data must have type `uint16_t` or `uint32_t`. The former is more compa ````{note} I also keep the interleaved color attribute in this example, my point data is: -```{lit} C++, Define point data (replace, also for tangle root "Vanilla") +```{lit} C++, Define point data (also for tangle root "Vanilla") std::vector pointData = { // x, y, r, g, b -0.5, -0.5, 1.0, 0.0, 0.0,