Lines Matching refs:focalParams
24 // focalParams is interpreted differently depending on if type is focal or degenerate when
25 // degenerate, focalParams = (r0, r0^2), so strips will use .y and kRadial will use .x when focal,
26 // focalParams = (1/r1, focalX = r0/(r0-r1)) The correct parameters are calculated once in Make for
28 layout(tracked) in uniform half2 focalParams;
47 half r0_2 = focalParams.y;
57 half r0 = focalParams.x;
66 half invR1 = focalParams.x;
67 half fx = focalParams.y;
174 // Type-specific calculations: isRadiusIncreasing, focalParams, and the gradient matrix.
178 SkPoint focalParams; // really just a 2D tuple
189 focalParams.set(1.0 / focalData.fR1, focalData.fFocalX);
197 focalParams.set(r0, r0 * r0);
212 focalParams.set(r0, r0 * r0);
221 isSwapped, isNativelyFocal, focalParams));