Skip to content
Permalink
Browse files
Added fog attribute to GLSL profile.
I think this is right...

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 5, 2008
1 parent 93a1b8e commit a9f72f63b88e09b7a0fa513b949da7b7fcdf1d36
Showing with 4 additions and 0 deletions.
  1. +4 −0 mojoshader.c
@@ -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 = "]";

0 comments on commit a9f72f6

Please sign in to comment.