Skip to content

Commit

Permalink
Added NRM implementation to GLSL profile.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 6, 2008
1 parent 78e3b3a commit fc96625
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mojoshader.c
Expand Up @@ -2250,7 +2250,9 @@ static void emit_GLSL_ABS(Context *ctx)

static void emit_GLSL_NRM(Context *ctx)
{
fail(ctx, "unimplemented."); // !!! FIXME
const char *src0 = make_GLSL_sourcearg_string(ctx, 0);
const char *code = make_GLSL_destarg_assign(ctx, 0, "normalize(%s)", src0);
output_line(ctx, "%s", code);
} // emit_GLSL_NRM

static void emit_GLSL_SINCOS(Context *ctx)
Expand Down

0 comments on commit fc96625

Please sign in to comment.