Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Vulkan coordinate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Jul 2, 2016
1 parent f81bd59 commit 6fd0787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/TextView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
" vtf.uv = uvIn[gl_VertexID];\n"
" vtf.color = colorIn * mulColor;\n"
" gl_Position = mv * mvMtx * vec4(posIn[gl_VertexID], 1.0);\n"
" gl_Position = FLIPFROMGL(gl_Position);\n"
"}\n";

static const char* GLSLFSReg =
Expand Down
2 changes: 2 additions & 0 deletions lib/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
"{\n"
" vtf.color = colorIn * mulColor;\n"
" gl_Position = mv * vec4(posIn, 1.0);\n"
" gl_Position = FLIPFROMGL(gl_Position);\n"
"}\n";

static const char* GLSLSolidFS =
Expand Down Expand Up @@ -54,6 +55,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK
" vtf.uv.xy = uvIn;\n"
" vtf.color = mulColor;\n"
" gl_Position = mv * vec4(posIn, 1.0);\n"
" gl_Position = FLIPFROMGL(gl_Position);\n"
"}\n";

static const char* GLSLTexFS =
Expand Down

0 comments on commit 6fd0787

Please sign in to comment.