Home | History | Annotate | Download | only in SkPerlinNoiseShader2

Lines Matching defs:noise

68 // limitValue is the maximum perlin noise array index value allowed
69 // newValue is the current noise dimension (either width or height)
71 // If the noise value would bring us out of bounds of the current noise array while we are
72 // stiching noise tiles together, wrap the noise around the current dimension of the noise to
220 // Copy noise data
221 uint16_t noise[4][kBlockSize][2];
225 noise[channel][i][j] = fNoise[channel][i][j];
229 // Do permutations on noise data
233 fNoise[channel][i][j] = noise[channel][fLatticeSelector[i]][j];
242 // Compute gradients from permutated noise data
251 // Put the normalized gradient back into the noise data
386 struct Noise {
390 Noise(SkScalar component)
398 Noise noiseX(noiseVector.x());
399 Noise noiseY(noiseVector.y());
454 SkScalar noise = noise2D(channel, stitchData, noiseVector);
456 noise : SkScalarAbs(noise);
486 // Improved Perlin Noise based on Java implementation found at http://mrl.nyu.edu/~perlin/noise/
587 // This (1,1) translation is due to WebKit's 1 based coordinates for the noise
774 // Add noise function
840 // affecting the result of the noise by making sure that we only have multiples of 1/255.
903 // Compute the noise as a linear interpolation of 'a' and 'b'
1204 // noise function
1238 fsBuilder->emitFunction(kFloat_GrSLType, "noise", SK_ARRAY_COUNT(noiseArgs), noiseArgs,
1287 const GrImprovedPerlinNoiseEffect& noise = processor.cast<GrImprovedPerlinNoiseEffect>();
1289 const SkVector& baseFrequency = noise.baseFrequency();
1292 pdman.set1f(fOctavesUni, SkIntToScalar(noise.octaves()));
1294 pdman.set1f(fZUni, noise.z());
1378 str->append("\"fractal noise\"");