Browse Source

note problem with fragment coord Y orientation

tags/mesa_20090313
Brian 18 years ago
parent
commit
95f066fc54
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/mesa/pipe/softpipe/sp_quad_fs.c

+ 4
- 0
src/mesa/pipe/softpipe/sp_quad_fs.c View File

@@ -104,6 +104,10 @@ shade_quad(
machine->Inputs[0].xyzw[0].f[2] = fx;
machine->Inputs[0].xyzw[0].f[3] = fx + 1.0f;

/* XXX for OpenGL we need to invert the Y pos here (y=0=top).
* but that'll mess up linear/perspective interpolation of other
* attributes...
*/
machine->Inputs[0].xyzw[1].f[0] = fy;
machine->Inputs[0].xyzw[1].f[1] = fy;
machine->Inputs[0].xyzw[1].f[2] = fy + 1.0f;

Loading…
Cancel
Save