mojoshader.c
changeset 1094 c2009ce6278d
parent 1093 81cf6fbca68d
child 1095 bc3d2c6e06cf
equal deleted inserted replaced
1093:81cf6fbca68d 1094:c2009ce6278d
  1943         case SRCMOD_NEGATE:
  1943         case SRCMOD_NEGATE:
  1944             premod_str = "-";
  1944             premod_str = "-";
  1945             break;
  1945             break;
  1946 
  1946 
  1947         case SRCMOD_BIASNEGATE:
  1947         case SRCMOD_BIASNEGATE:
  1948             premod_str = "-";
  1948             premod_str = "-(";
  1949             // fall through.
  1949             postmod_str = " - 0.5)";
       
  1950             break;
       
  1951 
  1950         case SRCMOD_BIAS:
  1952         case SRCMOD_BIAS:
  1951             fail(ctx, "SRCMOD_BIAS unsupported"); return buf; // !!! FIXME
  1953             premod_str = "(";
  1952             postmod_str = "_bias";
  1954             postmod_str = " - 0.5)";
  1953             break;
  1955             break;
  1954 
  1956 
  1955         case SRCMOD_SIGNNEGATE:
  1957         case SRCMOD_SIGNNEGATE:
  1956             premod_str = "-";
  1958             premod_str = "-";
  1957             // fall through.
  1959             // fall through.