Re: Help with shader code

2006-09-12 Thread H. Verbeet
On 12/09/06, H. Verbeet <[EMAIL PROTECTED]> 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");

Re: Help with shader code

2006-09-12 Thread H. Verbeet
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");

Help with shader code

2006-09-12 Thread Kapila De Silva
Hi All, can someone help me understand some code from dlls/wined3d/vertexshader.c please? Im new to shader code, but to me the following looks a bit strange: shader_addline(&buffer, "ADD result.position.x, TMP_OUT.x, PROJECTIONX.w;\n"); shader_addline(&buffer, "ADD result.positio