Home
last modified time | relevance | path

Searched refs:workSize (Results 1 – 4 of 4) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/
DPerturbFilter.java57 public FloatBuffer filter(float sx, float sy, float base, FloatBuffer data, int workSize) { in filter() argument
59 int origSize = (int) Math.ceil(workSize / (2 * this.magnitude + 1)); in filter()
60 int offset = (workSize - origSize) / 2; in filter()
62 …"Found origSize : " + origSize + " and offset: " + offset + " for workSize : " + workSize + " and … in filter()
64 float[] retval = new float[workSize * workSize]; in filter()
65 …float[] perturbx = new FractalSum().setOctaves(8).setScale(5f).getBuffer(sx, sy, base, workSize).a… in filter()
66 …rturby = new FractalSum().setOctaves(8).setScale(5f).getBuffer(sx, sy, base + 1, workSize).array(); in filter()
67 for (int y = 0; y < workSize; y++) { in filter()
68 for (int x = 0; x < workSize; x++) { in filter()
70 float noisex = perturbx[y * workSize + x]; in filter()
[all …]
DHydraulicErodeFilter.java80 public FloatBuffer filter(float sx, float sy, float base, FloatBuffer buffer, int workSize) { in filter() argument
85 float[] wt = new float[workSize * workSize]; in filter()
86 float[] st = new float[workSize * workSize]; in filter()
88 int[] idxrel = { -workSize - 1, -workSize + 1, workSize - 1, workSize + 1 }; in filter()
91 for (int y = 0; y < workSize; y++) { in filter()
92 for (int x = 0; x < workSize; x++) { in filter()
93 int idx = y * workSize + x; in filter()
113 if (idx + idxrel[j] > 0 && idx + idxrel[j] < workSize) { in filter()
DThermalErodeFilter.java55 public FloatBuffer filter(float sx, float sy, float base, FloatBuffer buffer, int workSize) { in filter() argument
57 float[] sa = new float[workSize * workSize]; in filter()
59 int[] idxrel = { -workSize - 1, -workSize + 1, workSize - 1, workSize + 1 }; in filter()
61 for (int y = 0; y < workSize; y++) { in filter()
62 for (int x = 0; x < workSize; x++) { in filter()
63 int idx = y * workSize + x; in filter()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/
DFilteredBasis.java96 int workSize = size + 2 * margin; in getBuffer() local
97 FloatBuffer retval = this.basis.getBuffer(sx - margin, sy - margin, base, workSize); in getBuffer()
98 return this.clip(this.doFilter(sx, sy, base, retval, workSize), workSize, size, margin); in getBuffer()