Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
glsl: Implemented SRCMOD_BIAS and SRCMOD_BIASNEGATE.
  • Loading branch information
icculus committed Apr 17, 2012
1 parent 7a2128e commit 10d3078
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mojoshader.c
Expand Up @@ -1945,11 +1945,13 @@ static const char *make_GLSL_srcarg_string(Context *ctx, const size_t idx,
break;

case SRCMOD_BIASNEGATE:
premod_str = "-";
// fall through.
premod_str = "-(";
postmod_str = " - 0.5)";
break;

case SRCMOD_BIAS:
fail(ctx, "SRCMOD_BIAS unsupported"); return buf; // !!! FIXME
postmod_str = "_bias";
premod_str = "(";
postmod_str = " - 0.5)";
break;

case SRCMOD_SIGNNEGATE:
Expand Down

0 comments on commit 10d3078

Please sign in to comment.