Lines Matching defs:fractions
363 * supports only a few fractions/colors, and then another, less optimal
395 // maximum number of fractions/colors supported by this shader
403 // array of gradient stops/fractions
404 "uniform float fractions[MAX_FRACTIONS];"
441 * One naive way to implement this would be to iterate through the fractions
454 * scaleFactors[i] = 1.0 / (fractions[i+1] - fractions[i]);
456 * For each iteration, we subtract fractions[i] from dist and then multiply
473 " clamp((dist - fractions[i]) * scaleFactors[i], 0.0, 1.0);"
637 GLfloat *fractions = (GLfloat *)pFractions;
646 loc = j2d_glGetUniformLocationARB(multiGradProgram, "fractions");
648 // fill the remainder of the fractions array with all zeros to
654 j2d_glUniform1fvARB(loc, numStops, fractions);
660 scaleFactors[i] = 1.0f / (fractions[i+1] - fractions[i]);
739 void *fractions, void *pixels)
770 // update the common "uniform" values (fractions and colors)
772 numStops, fractions, pixels);
864 void *fractions, void *pixels)
896 // update the common "uniform" values (fractions and colors)
898 numStops, fractions, pixels);