Revision 2dacdeb2
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedObjectGrid.java | ||
---|---|---|
29 | 29 |
{ |
30 | 30 |
protected static final int BYTES_PER_FLOAT = 4; // |
31 | 31 |
protected static final int POSITION_DATA_SIZE= 3; // Size of the position data in elements |
32 |
protected static final int COLOR_DATA_SIZE = 4; // Size of the color data in elements |
|
33 | 32 |
protected static final int NORMAL_DATA_SIZE = 3; // Size of the normal data in elements. |
34 | 33 |
protected static final int TEX_DATA_SIZE = 2; // Size of the texture coordinate data in elements. |
35 | 34 |
|
... | ... | |
42 | 41 |
void draw() |
43 | 42 |
{ |
44 | 43 |
GLES20.glVertexAttribPointer(Distorted.mPositionH , POSITION_DATA_SIZE, GLES20.GL_FLOAT, false, 0, mGridPositions); |
45 |
GLES20.glVertexAttribPointer(Distorted.mColorH , COLOR_DATA_SIZE , GLES20.GL_FLOAT, false, 0, mGridColors ); |
|
46 | 44 |
GLES20.glVertexAttribPointer(Distorted.mNormalH , NORMAL_DATA_SIZE , GLES20.GL_FLOAT, false, 0, mGridNormals ); |
47 | 45 |
GLES20.glVertexAttribPointer(Distorted.mTextureCoordH, TEX_DATA_SIZE , GLES20.GL_FLOAT, false, 0, mGridTexture ); |
48 | 46 |
|
Also available in: Unified diff
remove the 'Color' vertex attribute.