plane.getCenterPose().toMatrix(planeMatrix, 0); updatePlaneParameters( planeMatrix, plane.getExtentX(), plane.getExtentZ(), plane.getPolygon()); colorRgbaToFloat(planeColor, PLANE_COLORS_RGBA[colorIndex]); GLES20.glUniform4fv(lineColorUniform, 1, planeColor, 0); GLES20.glUniform4fv(dotColorUniform, 1, planeColor, 0); GLES20.glUniformMatrix2fv(planeUvMatrixUniform, 1, false, planeAngleUvMatrix, 0); draw(cameraView, cameraPerspective);
plane.getCenterPose().toMatrix(planeMatrix, 0); updatePlaneParameters( planeMatrix, plane.getExtentX(), plane.getExtentZ(), plane.getPolygon()); colorRgbaToFloat(planeColor, PLANE_COLORS_RGBA[colorIndex]); GLES20.glUniform4fv(lineColorUniform, 1, planeColor, 0); GLES20.glUniform4fv(dotColorUniform, 1, planeColor, 0); GLES20.glUniformMatrix2fv(planeUvMatrixUniform, 1, false, planeAngleUvMatrix, 0); draw(cameraView, cameraPerspective);