aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeometryByReference
diff options
context:
space:
mode:
Diffstat (limited to 'src/GeometryByReference')
-rw-r--r--src/GeometryByReference/GeometryByReferenceNIOBuffer.java3
-rw-r--r--src/GeometryByReference/InterleavedNIOBuffer.java3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/GeometryByReference/GeometryByReferenceNIOBuffer.java b/src/GeometryByReference/GeometryByReferenceNIOBuffer.java
index 183b7b1..0204b64 100644
--- a/src/GeometryByReference/GeometryByReferenceNIOBuffer.java
+++ b/src/GeometryByReference/GeometryByReferenceNIOBuffer.java
@@ -447,7 +447,10 @@ GeometryUpdater {
tetra.setCoordRefBuffer(indexedFloatBufferCoord);
tetra.setColorRefBuffer(indexedFloatBufferColor);
((IndexedTriangleStripArray)tetra).setCoordinateIndices(0, indices);
+ /*
+ // Do not set color indices in UCIO mode
((IndexedTriangleStripArray)tetra).setColorIndices(0, indices);
+ */
}
if (tetra != null)
diff --git a/src/GeometryByReference/InterleavedNIOBuffer.java b/src/GeometryByReference/InterleavedNIOBuffer.java
index 9b6c721..168333e 100644
--- a/src/GeometryByReference/InterleavedNIOBuffer.java
+++ b/src/GeometryByReference/InterleavedNIOBuffer.java
@@ -495,11 +495,14 @@ public class InterleavedNIOBuffer extends JApplet implements ActionListener {
12);
tetra.setInterleavedVertexBuffer(indexedInterleavedBuffer);
((IndexedTriangleArray)tetra).setCoordinateIndices(0, indices);
+ /*
+ // Do not set color or texcoord indices in UCIO mode
((IndexedTriangleArray)tetra).setColorIndices(0, indices);
((IndexedTriangleArray)tetra).setTextureCoordinateIndices(
0, 0, indices);
((IndexedTriangleArray)tetra).setTextureCoordinateIndices(
1, 0, indices);
+ */
}
else if (type == 4) { // Indexed strip geometry
tetra = new IndexedTriangleStripArray(4,