public class TextureGeneratorWood extends TextureGenerator
Modifier and Type | Class and Description |
---|---|
protected static interface |
TextureGeneratorWood.WaveForm |
TextureGenerator.BrightnessAndContrastData
Modifier and Type | Field and Description |
---|---|
protected static int |
TEX_BAND |
protected static int |
TEX_BANDNOISE |
protected static int |
TEX_NOISEPERL |
protected static int |
TEX_NOISESOFT |
protected static int |
TEX_RING |
protected static int |
TEX_RINGNOISE |
protected static int |
TEX_SAW |
protected static int |
TEX_SIN |
protected static int |
TEX_TRI |
protected static TextureGeneratorWood.WaveForm[] |
waveformFunctions |
protected com.jme3.scene.plugins.blender.textures.generating.TextureGeneratorWood.WoodIntensityData |
woodIntensityData |
bacd, colorBand, flag, imageFormat, noiseGenerator
Constructor and Description |
---|
TextureGeneratorWood(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator)
Constructor stores the given noise generator.
|
Modifier and Type | Method and Description |
---|---|
void |
getPixel(TexturePixel pixel,
float x,
float y,
float z) |
void |
readData(Structure tex,
BlenderContext blenderContext) |
float |
woodIntensity(com.jme3.scene.plugins.blender.textures.generating.TextureGeneratorWood.WoodIntensityData woodIntData,
float x,
float y,
float z)
Computes basic wood intensity value at x,y,z.
|
applyBrightnessAndContrast, applyBrightnessAndContrast, getImageFormat
protected static final int TEX_SIN
protected static final int TEX_SAW
protected static final int TEX_TRI
protected static final int TEX_BAND
protected static final int TEX_RING
protected static final int TEX_BANDNOISE
protected static final int TEX_RINGNOISE
protected static final int TEX_NOISESOFT
protected static final int TEX_NOISEPERL
protected com.jme3.scene.plugins.blender.textures.generating.TextureGeneratorWood.WoodIntensityData woodIntensityData
protected static TextureGeneratorWood.WaveForm[] waveformFunctions
public TextureGeneratorWood(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator)
noiseGenerator
- the noise generatorpublic void readData(Structure tex, BlenderContext blenderContext)
readData
in class TextureGenerator
public void getPixel(TexturePixel pixel, float x, float y, float z)
getPixel
in class TextureGenerator
public float woodIntensity(com.jme3.scene.plugins.blender.textures.generating.TextureGeneratorWood.WoodIntensityData woodIntData, float x, float y, float z)
woodIntData
- x
- X coordinate of the texture pixely
- Y coordinate of the texture pixelz
- Z coordinate of the texture pixel