mojoshader.c
branchtrunk
changeset 302 e66a62a18cf7
parent 301 cfd2b7ea6796
child 303 1d8a578cc8ec
equal deleted inserted replaced
301:cfd2b7ea6796 302:e66a62a18cf7
  2703 
  2703 
  2704 static void emit_GLSL_POW(Context *ctx)
  2704 static void emit_GLSL_POW(Context *ctx)
  2705 {
  2705 {
  2706     const char *src0 = make_GLSL_srcarg_string_masked(ctx, 0);
  2706     const char *src0 = make_GLSL_srcarg_string_masked(ctx, 0);
  2707     const char *src1 = make_GLSL_srcarg_string_masked(ctx, 1);
  2707     const char *src1 = make_GLSL_srcarg_string_masked(ctx, 1);
  2708     const char *code = make_GLSL_destarg_assign(ctx, "pow(abs(%s), %s))", src0, src1);
  2708     const char *code = make_GLSL_destarg_assign(ctx, "pow(abs(%s), %s)", src0, src1);
  2709     output_line(ctx, "%s", code);
  2709     output_line(ctx, "%s", code);
  2710 } // emit_GLSL_POW
  2710 } // emit_GLSL_POW
  2711 
  2711 
  2712 static void emit_GLSL_CRS(Context *ctx)
  2712 static void emit_GLSL_CRS(Context *ctx)
  2713 {
  2713 {