Home
last modified time | relevance | path

Searched refs:ShaderUtils (Results 1 – 11 of 11) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/
DShaderUtils.java48 public class ShaderUtils { class
65 …return new Color((int) ShaderUtils.clamp(ShaderUtils.mix(a.getRed(), b.getRed(), f), 0, 255), (int… in mix()
66 ShaderUtils.mix(a.getGreen(), b.getGreen(), f), 0, 255), (int) ShaderUtils.clamp( in mix()
67 ShaderUtils.mix(a.getBlue(), b.getBlue(), f), 0, 255)); in mix()
75 …return new float[] { ShaderUtils.mix(c1[0], c2[0], f), ShaderUtils.mix(c1[1], c2[1], f), ShaderUti… in mix()
83 return ShaderUtils.clamp((x - a) / (b - a), 0, 1); in boxstep()
87 return ShaderUtils.step(a, x) - ShaderUtils.step(b, x); in pulse()
158 x = ShaderUtils.clamp(x, 0, 1) * nspans; in spline()
175 retval[i] = ShaderUtils.spline(x, knots[i]); in spline()
189 return x < 0.5 ? ShaderUtils.bias(1 - g, 2 * x) / 2 : 1 - ShaderUtils.bias(1 - g, 2 - 2 * x) / 2; in gain()
[all …]
DColor.java60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1); in Color()
61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1); in Color()
62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1); in Color()
63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1); in Color()
81 int i = ShaderUtils.floor(hh); in Color()
129 …float r = ShaderUtils.clamp(this.rgba[0] * 0.393f + this.rgba[1] * 0.769f + this.rgba[2] * 0.189f,… in toSepia()
130 …float g = ShaderUtils.clamp(this.rgba[0] * 0.349f + this.rgba[1] * 0.686f + this.rgba[2] * 0.168f,… in toSepia()
131 …float b = ShaderUtils.clamp(this.rgba[0] * 0.272f + this.rgba[1] * 0.534f + this.rgba[2] * 0.131f,… in toSepia()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/
DPerturbFilter.java35 import com.jme3.terrain.noise.ShaderUtils;
81 float c0 = ShaderUtils.mix(c00, c01, noisex); in filter()
82 float c1 = ShaderUtils.mix(c10, c11, noisex); in filter()
83 retval[y * workSize + x] = ShaderUtils.mix(c0, c1, noisey); in filter()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/
DImprovedNoise.java32 import com.jme3.terrain.noise.ShaderUtils;
47 int X = ShaderUtils.floor(x), // FIND UNIT CUBE THAT in noise()
48 Y = ShaderUtils.floor(y), // CONTAINS POINT. in noise()
49 Z = ShaderUtils.floor(z); in noise()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/modulator/
DCatRom2.java35 import com.jme3.terrain.noise.ShaderUtils;
72 int i = ShaderUtils.floor(in[0]); in value()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/fractal/
DFractalSum.java33 import com.jme3.terrain.noise.ShaderUtils;
77 return ShaderUtils.clamp(total, -1, 1); in value()
/external/jmonkeyengine/engine/src/core/com/jme3/shader/
DShaderUtils.java35 public class ShaderUtils { class
/external/jmonkeyengine/engine/src/test/jme3test/terrain/
DTerrainFractalGridTest.java13 import com.jme3.terrain.noise.ShaderUtils;
99 return ShaderUtils.clamp(in[0] * 0.5f + 0.5f, 0, 1); in simpleInitApp()
DTerrainGridAlphaMapTest.java37 import com.jme3.terrain.noise.ShaderUtils;
129 return ShaderUtils.clamp(in[0] * 0.5f + 0.5f, 0, 1); in simpleInitApp()
DTerrainTestModifyHeight.java61 import com.jme3.terrain.noise.ShaderUtils;
380 return ShaderUtils.clamp(in[0] * 0.5f + 0.5f, 0, 1); in createTerrainGrid()
/external/jmonkeyengine/
DNOTICE4074 ==> engine/src/terrain/com/jme3/terrain/noise/ShaderUtils.java <==
13635 ==> engine/src/core/com/jme3/shader/ShaderUtils.java <==