WineD3D: paletted texture emulation using fragment shaders

Frank Richter frank.richter at
Sun Dec 17 10:43:17 CST 2006

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,


More information about the wine-devel mailing list