Revision 2dacdeb2
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/Distorted.java | ||
---|---|---|
86 | 86 |
private static boolean mInitialized = false; |
87 | 87 |
|
88 | 88 |
static int mPositionH; // pass in model position information |
89 |
static int mColorH; // pass in model color information |
|
90 | 89 |
static int mTextureUniformH;// pass in the texture. |
91 | 90 |
static int mNormalH; // pass in model normal information. |
92 | 91 |
static int mTextureCoordH; // pass in model texture coordinate information. |
... | ... | |
352 | 351 |
mTextureUniformH = GLES20.glGetUniformLocation(mProgramH, "u_Texture"); |
353 | 352 |
|
354 | 353 |
mPositionH = GLES20.glGetAttribLocation( mProgramH, "a_Position"); |
355 |
mColorH = GLES20.glGetAttribLocation( mProgramH, "a_Color"); |
|
356 |
mNormalH = GLES20.glGetAttribLocation( mProgramH, "a_Normal"); |
|
354 |
mNormalH = GLES20.glGetAttribLocation( mProgramH, "a_Normal"); |
|
357 | 355 |
mTextureCoordH = GLES20.glGetAttribLocation( mProgramH, "a_TexCoordinate"); |
358 | 356 |
|
359 | 357 |
EffectQueueFragment.getUniforms(mProgramH); |
... | ... | |
361 | 359 |
EffectQueueMatrix.getUniforms(mProgramH); |
362 | 360 |
|
363 | 361 |
GLES20.glEnableVertexAttribArray(mPositionH); |
364 |
GLES20.glEnableVertexAttribArray(mColorH); |
|
365 | 362 |
GLES20.glEnableVertexAttribArray(mNormalH); |
366 | 363 |
GLES20.glEnableVertexAttribArray(mTextureCoordH); |
367 | 364 |
|
Also available in: Unified diff
remove the 'Color' vertex attribute.