medfall

A super great game engine
Log | Files | Refs

commit 4c0e3666cae59eab0f982550338f6a19e785a9eb
parent b30220f10c6dafb090e8880a904b72e36f280182
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun, 19 Nov 2017 14:29:39 +0200

Flip filler mesh triangulation

Diffstat:
clipmap.cc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clipmap.cc b/clipmap.cc @@ -287,10 +287,10 @@ GAME_INIT( game_init ) { horizontal_indices[ i * 6 + 0 ] = br; horizontal_indices[ i * 6 + 1 ] = bl; - horizontal_indices[ i * 6 + 2 ] = tl; - horizontal_indices[ i * 6 + 3 ] = tl; - horizontal_indices[ i * 6 + 4 ] = tr; - horizontal_indices[ i * 6 + 5 ] = br; + horizontal_indices[ i * 6 + 2 ] = tr; + horizontal_indices[ i * 6 + 3 ] = bl; + horizontal_indices[ i * 6 + 4 ] = tl; + horizontal_indices[ i * 6 + 5 ] = tr; } memcpy( vertical_indices.ptr(), horizontal_indices.ptr(), horizontal_indices.num_bytes() );