Merge pull request #449 from DrChat/rect_list_fix_
Rectangle List Fix (projection issues on right-aligned vertices)
This commit is contained in:
commit
4e09bb8e61
|
@ -362,11 +362,11 @@ bool CommandProcessor::SetupGL() {
|
|||
" gl_PointSize = gl_in[2].gl_PointSize;\n"
|
||||
" out_vtx = in_vtx[2];\n"
|
||||
" EmitVertex();\n"
|
||||
" gl_Position = gl_in[0].gl_Position + (gl_in[2].gl_Position - \n"
|
||||
" gl_in[1].gl_Position);\n"
|
||||
" gl_Position = (gl_in[0].gl_Position + gl_in[2].gl_Position) - \n"
|
||||
" gl_in[1].gl_Position;\n"
|
||||
" gl_PointSize = gl_in[2].gl_PointSize;\n"
|
||||
" for (int i = 0; i < 16; ++i) {\n"
|
||||
" out_vtx.o[i] = -in_vtx[0].o[i] + in_vtx[1].o[i] + \n"
|
||||
" out_vtx.o[i] = in_vtx[0].o[i] + -in_vtx[1].o[i] + \n"
|
||||
" in_vtx[2].o[i];\n"
|
||||
" }\n"
|
||||
" EmitVertex();\n"
|
||||
|
|
Loading…
Reference in New Issue