Skip to content

Commit

Permalink
Added fog attribute to GLSL profile.
Browse files Browse the repository at this point in the history
I think this is right...

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 5, 2008
1 parent 93a1b8e commit a9f72f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader.c
Expand Up @@ -1785,7 +1785,11 @@ static void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum,
else if (index == 1)
usage_str = "gl_FrontSecondaryColor";
break;
case MOJOSHADER_USAGE_FOG:
usage_str = "gl_FogFragCoord";
break;
case MOJOSHADER_USAGE_TEXCOORD:
snprintf(index_str, sizeof (index_str), "%u", (uint) index);
usage_str = "gl_TexCoord";
arrayleft = "[";
arrayright = "]";
Expand Down

0 comments on commit a9f72f6

Please sign in to comment.