Update MediaWiki page 'OB3'

This commit is contained in:
S 2012-12-10 23:49:56 +00:00 committed by moparisthebest
parent 9c9842d4a9
commit 3706c966e1

View File

@ -117,4 +117,9 @@ When converting to/from [http://en.wikipedia.org/wiki/Wavefront_.obj_file Wavefr
int b = i & 0x1f;
return (r << 19) + (g << 11) + (b << 3);
}
</pre>
<pre>public static final int encode_colour(int r, int g, int b) {
return -1 - (r / 8) * 1024 - (g / 8) * 32 - b / 8;
}
</pre>