( color )
| 10421 | } |
| 10422 | |
| 10423 | function getColorIndex( color ) { |
| 10424 | |
| 10425 | var hash = color.r.toString() + color.g.toString() + color.b.toString(); |
| 10426 | |
| 10427 | if ( colorsHash[ hash ] !== undefined ) { |
| 10428 | |
| 10429 | return colorsHash[ hash ]; |
| 10430 | |
| 10431 | } |
| 10432 | |
| 10433 | colorsHash[ hash ] = colors.length; |
| 10434 | colors.push( color.getHex() ); |
| 10435 | |
| 10436 | return colorsHash[ hash ]; |
| 10437 | |
| 10438 | } |
| 10439 | |
| 10440 | function getUvIndex( uv ) { |
| 10441 |