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