Skip to content
Permalink
Browse files
Added NRM implementation to GLSL profile.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 6, 2008
1 parent 78e3b3a commit fc9662550d2fa290e71ec0e3a377367b6bd57489
Showing with 3 additions and 1 deletion.
  1. +3 −1 mojoshader.c
@@ -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)

0 comments on commit fc96625

Please sign in to comment.