Help with shader code

H. Verbeet hverbeet at gmail.com
Tue Sep 12 12:10:55 CDT 2006


On 12/09/06, H. Verbeet <hverbeet at gmail.com> wrote:
> That does look wrong. The proper code should probably look like this:
>
> shader_addline(&buffer, "ADD result.position.x, TMP_OUT.x, PROJECTIONX.w;\n");
> shader_addline(&buffer, "MAD result.position.y, TMP_OUT.y,
> PROJECTIONY.y, PROJECTIONY.w;\n");
>
Actually, that's not completely true... that would do the add after
the multiplication instead of before. It might still be worth it to do
it that way and invert the offset instead though.



More information about the wine-devel mailing list