/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | TextureGeneratorVoronoi.java | 73 TexturePixel texres = new TexturePixel(); in generate() local 101 …texres.intensity = sc * FastMath.abs(voronoiWeight1 * da[0] + voronoiWeight2 * da[1] + voronoiWeig… in generate() 102 if(texres.intensity>1.0f) { in generate() 103 texres.intensity = 1.0f; in generate() 104 } else if(texres.intensity<0.0f) { in generate() 105 texres.intensity = 0.0f; in generate() 109 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 110 texres.red = colorBand[colorbandIndex][0]; in generate() 111 texres.green = colorBand[colorbandIndex][1]; in generate() 112 texres.blue = colorBand[colorbandIndex][2]; in generate() [all …]
|
D | TextureGeneratorClouds.java | 70 TexturePixel texres = new TexturePixel(); in generate() local 93 …texres.intensity = NoiseGenerator.NoiseFunctions.turbulence(texvec[0], texvec[1], texvec[2], noise… in generate() 94 texres.intensity = FastMath.clamp(texres.intensity, 0.0f, 1.0f); in generate() 96 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 97 texres.red = colorBand[colorbandIndex][0]; in generate() 98 texres.green = colorBand[colorbandIndex][1]; in generate() 99 texres.blue = colorBand[colorbandIndex][2]; in generate() 101 this.applyBrightnessAndContrast(bacd, texres); in generate() 102 data[index++] = (byte) (texres.red * 255.0f); in generate() 103 data[index++] = (byte) (texres.green * 255.0f); in generate() [all …]
|
D | TextureGeneratorStucci.java | 74 TexturePixel texres = new TexturePixel(); in generate() local 94 …texres.intensity = NoiseGenerator.NoiseFunctions.noise(texvec[0], texvec[1], texvec[2] + ofs, nois… in generate() 96 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 97 texres.red = colorBand[colorbandIndex][0]; in generate() 98 texres.green = colorBand[colorbandIndex][1]; in generate() 99 texres.blue = colorBand[colorbandIndex][2]; in generate() 100 texres.alpha = colorBand[colorbandIndex][3]; in generate() 104 texres.intensity = 1.0f - texres.intensity; in generate() 106 if (texres.intensity < 0.0f) { in generate() 107 texres.intensity = 0.0f; in generate() [all …]
|
D | TextureGeneratorMusgrave.java | 64 TexturePixel texres = new TexturePixel(); in generate() local 86 …texres.intensity = musgraveData.outscale * musgraveFunction.execute(musgraveData, texvec[0], texve… in generate() 87 if(texres.intensity>1) { in generate() 88 texres.intensity = 1.0f; in generate() 89 } else if(texres.intensity < 0) { in generate() 90 texres.intensity = 0.0f; in generate() 94 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 95 texres.red = colorBand[colorbandIndex][0]; in generate() 96 texres.green = colorBand[colorbandIndex][1]; in generate() 97 texres.blue = colorBand[colorbandIndex][2]; in generate() [all …]
|
D | TextureGeneratorNoise.java | 64 TexturePixel texres = new TexturePixel(); in generate() local 83 texres.intensity = FastMath.clamp(val, 0.0f, 1.0f); in generate() 85 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 86 texres.red = colorBand[colorbandIndex][0]; in generate() 87 texres.green = colorBand[colorbandIndex][1]; in generate() 88 texres.blue = colorBand[colorbandIndex][2]; in generate() 90 this.applyBrightnessAndContrast(bacd, texres); in generate() 91 data[index++] = (byte) (texres.red * 255.0f); in generate() 92 data[index++] = (byte) (texres.green * 255.0f); in generate() 93 data[index++] = (byte) (texres.blue * 255.0f); in generate() [all …]
|
D | TextureGeneratorDistnoise.java | 68 TexturePixel texres = new TexturePixel(); in generate() local 84 …texres.intensity = this.musgraveVariableLunacrityNoise(texvec[0], texvec[1], texvec[2], distAmount… in generate() 85 texres.intensity = FastMath.clamp(texres.intensity, 0.0f, 1.0f); in generate() 87 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 88 texres.red = colorBand[colorbandIndex][0]; in generate() 89 texres.green = colorBand[colorbandIndex][1]; in generate() 90 texres.blue = colorBand[colorbandIndex][2]; in generate() 92 this.applyBrightnessAndContrast(bacd, texres); in generate() 93 data[index++] = (byte) (texres.red * 255.0f); in generate() 94 data[index++] = (byte) (texres.green * 255.0f); in generate() [all …]
|
D | TextureGeneratorMagic.java | 129 TexturePixel texres = new TexturePixel(); in generate() local 148 texres.intensity = FastMath.clamp(0.3333f * (xyz[0] + xyz[1] + xyz[2]), 0.0f, 1.0f); in generate() 149 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 150 texres.red = colorBand[colorbandIndex][0]; in generate() 151 texres.green = colorBand[colorbandIndex][1]; in generate() 152 texres.blue = colorBand[colorbandIndex][2]; in generate() 153 texres.alpha = colorBand[colorbandIndex][3]; in generate() 170 texres.red = 0.5f - xyz[0]; in generate() 171 texres.green = 0.5f - xyz[1]; in generate() 172 texres.blue = 0.5f - xyz[2]; in generate() [all …]
|
D | TextureGeneratorBlend.java | 120 TexturePixel texres = new TexturePixel(); in generate() local 140 texres.intensity = INTENSITY_FUNCTION[stype].getIntensity(x, y, dDelta * k); in generate() 143 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 144 texres.red = colorBand[colorbandIndex][0]; in generate() 145 texres.green = colorBand[colorbandIndex][1]; in generate() 146 texres.blue = colorBand[colorbandIndex][2]; in generate() 148 this.applyBrightnessAndContrast(bacd, texres); in generate() 149 data[index++] = (byte) (texres.red * 255.0f); in generate() 150 data[index++] = (byte) (texres.green * 255.0f); in generate() 151 data[index++] = (byte) (texres.blue * 255.0f); in generate() [all …]
|
D | TextureGeneratorMarble.java | 66 TexturePixel texres = new TexturePixel(); in generate() local 82 texres.intensity = this.marbleInt(marbleData, texvec[0], texvec[1], texvec[2]); in generate() 84 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 85 texres.red = colorBand[colorbandIndex][0]; in generate() 86 texres.green = colorBand[colorbandIndex][1]; in generate() 87 texres.blue = colorBand[colorbandIndex][2]; in generate() 89 this.applyBrightnessAndContrast(bacd, texres); in generate() 90 data[index++] = (byte) (texres.red * 255.0f); in generate() 91 data[index++] = (byte) (texres.green * 255.0f); in generate() 92 data[index++] = (byte) (texres.blue * 255.0f); in generate() [all …]
|
D | TextureGeneratorWood.java | 75 TexturePixel texres = new TexturePixel(); in generate() local 95 texres.intensity = this.woodIntensity(woodIntensityData, texvec[0], texvec[1], texvec[2]); in generate() 98 int colorbandIndex = (int) (texres.intensity * 1000.0f); in generate() 99 texres.red = colorBand[colorbandIndex][0]; in generate() 100 texres.green = colorBand[colorbandIndex][1]; in generate() 101 texres.blue = colorBand[colorbandIndex][2]; in generate() 103 this.applyBrightnessAndContrast(bacd, texres); in generate() 105 data[index++] = (byte) (texres.red * 255.0f); in generate() 106 data[index++] = (byte) (texres.green * 255.0f); in generate() 107 data[index++] = (byte) (texres.blue * 255.0f); in generate() [all …]
|
D | TextureGenerator.java | 280 protected void applyBrightnessAndContrast(BrightnessAndContrastData bacd, TexturePixel texres) { in applyBrightnessAndContrast() argument 281 texres.red = (texres.red - 0.5f) * bacd.contrast + bacd.brightness; in applyBrightnessAndContrast() 282 if (texres.red < 0.0f) { in applyBrightnessAndContrast() 283 texres.red = 0.0f; in applyBrightnessAndContrast() 285 texres.green =(texres.green - 0.5f) * bacd.contrast + bacd.brightness; in applyBrightnessAndContrast() 286 if (texres.green < 0.0f) { in applyBrightnessAndContrast() 287 texres.green = 0.0f; in applyBrightnessAndContrast() 289 texres.blue = (texres.blue - 0.5f) * bacd.contrast + bacd.brightness; in applyBrightnessAndContrast() 290 if (texres.blue < 0.0f) { in applyBrightnessAndContrast() 291 texres.blue = 0.0f; in applyBrightnessAndContrast() [all …]
|