mirror of
https://github.com/moparisthebest/rswiki-book
synced 2024-12-22 15:38:52 -05:00
Update MediaWiki page 'OB3'
This commit is contained in:
parent
9c9842d4a9
commit
3706c966e1
@ -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>
|
Loading…
Reference in New Issue
Block a user