Cylinder: fix incorrect axis samples for closed
This commit is contained in:
parent
5468a48050
commit
b431d16981
@ -222,6 +222,7 @@ public class Cylinder extends Mesh {
|
||||
// VertexBuffer pvb = getBuffer(Type.Position);
|
||||
// VertexBuffer nvb = getBuffer(Type.Normal);
|
||||
// VertexBuffer tvb = getBuffer(Type.TexCoord);
|
||||
axisSamples += (closed ? 2 : 0);
|
||||
|
||||
// Vertices
|
||||
int vertCount = axisSamples * (radialSamples + 1) + (closed ? 2 : 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user