2017-09-30 1 views

Répondre

2

Il se produit lorsque vous définissez les variables de shaders dans PlaneRenderer.java:

int colorIndex = planeIndex % PLANE_COLORS_RGBA.length; 
colorRgbaToFloat(mPlaneColor, PLANE_COLORS_RGBA[colorIndex]); 
GLES20.glUniform4fv(mLineColorUniform, 1, mPlaneColor, 0); 
GLES20.glUniform4fv(mDotColorUniform, 1, mPlaneColor, 0); 

donc le plus rapide plus facile/modification serait de définir l'indice de couleur à une valeur constante