OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:workSize
(Results
1 - 4
of
4
) sorted by null
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/
PerturbFilter.java
57
public FloatBuffer filter(float sx, float sy, float base, FloatBuffer data, int
workSize
) {
59
int origSize = (int) Math.ceil(
workSize
/ (2 * this.magnitude + 1));
60
int offset = (
workSize
- origSize) / 2;
62
"Found origSize : " + origSize + " and offset: " + offset + " for
workSize
: " +
workSize
+ " and magnitude : "
64
float[] retval = new float[
workSize
*
workSize
];
65
float[] perturbx = new FractalSum().setOctaves(8).setScale(5f).getBuffer(sx, sy, base,
workSize
).array();
66
float[] perturby = new FractalSum().setOctaves(8).setScale(5f).getBuffer(sx, sy, base + 1,
workSize
).array();
67
for (int y = 0; y <
workSize
; y++) {
[
all
...]
ThermalErodeFilter.java
55
public FloatBuffer filter(float sx, float sy, float base, FloatBuffer buffer, int
workSize
) {
57
float[] sa = new float[
workSize
*
workSize
];
59
int[] idxrel = { -
workSize
- 1, -
workSize
+ 1,
workSize
- 1,
workSize
+ 1 };
61
for (int y = 0; y <
workSize
; y++) {
62
for (int x = 0; x <
workSize
; x++) {
63
int idx = y *
workSize
+ x;
[
all
...]
HydraulicErodeFilter.java
80
public FloatBuffer filter(float sx, float sy, float base, FloatBuffer buffer, int
workSize
) {
82
// float[] wa = this.waterMap.getBuffer(sx, sy, base,
workSize
).array();
84
//
workSize
).array();
85
float[] wt = new float[
workSize
*
workSize
];
86
float[] st = new float[
workSize
*
workSize
];
88
int[] idxrel = { -
workSize
- 1, -
workSize
+ 1,
workSize
- 1, workSize + 1 };
[
all
...]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/
FilteredBasis.java
96
int
workSize
= size + 2 * margin;
97
FloatBuffer retval = this.basis.getBuffer(sx - margin, sy - margin, base,
workSize
);
98
return this.clip(this.doFilter(sx, sy, base, retval,
workSize
),
workSize
, size, margin);
Completed in 396 milliseconds