Fix triangle calculation in grass example
This commit is contained in:
parent
2771564b94
commit
5ce414c27f
1 changed files with 1 additions and 2 deletions
|
|
@ -440,9 +440,8 @@ struct grass_app
|
|||
grass_program["u_height10"] = h10;
|
||||
grass_program["u_height11"] = h11;
|
||||
grass_mesh.draw(0, ((i + 1) * grass_mesh.index_count()) / N);
|
||||
// grass_mesh.draw();
|
||||
|
||||
triangles += grass_mesh.index_count() / 3;
|
||||
triangles += (((i + 1) * grass_mesh.index_count()) / N) / 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue