private float [ ] restoreAttribs ( float precision , int [ ] intAttribs ) { int ae = CTM_ATTR_ELEMENT_COUNT ; int vc = intAttribs . length / ae ; float [ ] values = new float [ intAttribs . length ] ; int [ ] prev = new int [ ae ] ; for ( int i = 0 ; i < vc ; ++ i ) { // Calculate inverse delta, and convert to floating point for ( int j = 0 ; j < ae ; ++ j ) { int value = intAttribs [ i * ae + j ] + prev [ j ] ; values [ i * ae + j ] = value * precision ; prev [ j ] = value ; } } return values ; }
Calculate inverse derivatives of the vertex attributes .