1. Bryan Kadzban
  2. Frontier

Commits

Bryan Kadzban  committed f177b08

Backport the essence of https://bitbucket.org/ecsirke/frontier rev eff451c5eaf7, distilled down to one character. (The problem that caused grass glitching was that the shader never handled uv.y being equal to 0.5. Now it does, arbitrarily using the second branch.)

  • Participants
  • Parent commits 1bc9eac
  • Branches default

Comments (1)

Files changed (1)

File Terrain/Shaders/vertex.cg

View file
  • Ignore whitespace
   float move;
   if (IN.uv.y > 0.5)
     move = min (IN.uv.y, 0.75);
-  else if (IN.uv.y < 0.5)
+  else if (IN.uv.y <= 0.5)
     move = IN.uv.y * 2.0f;
   move = sin ((IN.position.y + IN.position.x) / 10.0f + data.z) * move * 0.15;
   IN.position.x += move;