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

Commit

Permalink
Merge pull request #185 from jovobe/master
Browse files Browse the repository at this point in the history
Fixes syntax errors in shaders
  • Loading branch information
LukasKalbertodt authored Aug 4, 2016
2 parents 2f09659 + 4c8aea8 commit 70d414a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions client/shader/plants.tcs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct OutputPatch {
vec3 Color;
};

out patch OutputPatch oPatch;
patch out OutputPatch oPatch;



Expand All @@ -42,11 +42,6 @@ vec3 ProjectToPlane(vec3 Point, vec3 PlanePoint, vec3 PlaneNormal)
return (res + 2 * add);
}

vec3 interpolate3D(vec3 v0, vec3 v1, vec3 v2)
{
return vec3(gl_TessCoord.x) * v0 + vec3(gl_TessCoord.y) * v1 + vec3(gl_TessCoord.z) * v2;
}

void CalcPositions()
{
// The original vertices stay the same
Expand Down
2 changes: 1 addition & 1 deletion client/shader/plants.tes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct OutputPatch {
vec3 Color;
};

in patch OutputPatch oPatch;
patch in OutputPatch oPatch;

out vec3 tePosition;
out vec3 tes_normal;
Expand Down

0 comments on commit 70d414a

Please sign in to comment.