Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
VertexShaderGen: Remove Sonic Unleashed hack. Doesn't seem to be requ…
…ired anymore.

Either way, even if it's still needed for anything, this is not the correct way to fix the issue.
  • Loading branch information
neobrain committed Dec 30, 2013
1 parent 3cfa04b commit 3aa0a63
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Source/Core/VideoCommon/Src/VertexShaderGen.cpp
Expand Up @@ -411,13 +411,6 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
// divide
out.Write("o.pos.z = o.pos.w + o.pos.z * 2.0;\n");

// Sonic Unleashed puts its final rendering at the near or
// far plane of the viewing frustrum(actually box, they use
// orthogonal projection for that), and we end up putting it
// just beyond, and the rendering gets clipped away. (The
// primitive gets dropped)
out.Write("o.pos.z = o.pos.z * 1048575.0/1048576.0;\n");

// the next steps of the OGL pipeline are:
// (x_c,y_c,z_c,w_c) = o.pos //switch to OGL spec terminology
// clipping to -w_c <= (x_c,y_c,z_c) <= w_c
Expand Down

0 comments on commit 3aa0a63

Please sign in to comment.