17 Dec
2006
17 Dec
'06
4:43 p.m.
On 16.12.2006 22:24, Roderick Colenbrander wrote:
+ "MUL index.x, index.x, constants.x;\n" /* Scale the index by 255/256 */ + "ADD index.x, index.x, constants.y;\n" /* Add a bias of '0.5' in order to sample in the middle */
FWIW, this can be conflated to "MAD index.x, index.x, constants.x, constants.y;". -f.r.