com.jme3.scene.plugins.blender.textures.generating
Class TextureGeneratorWood
java.lang.Object
com.jme3.scene.plugins.blender.textures.generating.TextureGenerator
com.jme3.scene.plugins.blender.textures.generating.TextureGeneratorWood
- Direct Known Subclasses:
- TextureGeneratorMarble
public class TextureGeneratorWood
- extends TextureGenerator
This class generates the 'wood' texture.
Constructor Summary |
TextureGeneratorWood(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator)
Constructor stores the given noise generator. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEX_SIN
protected static final int TEX_SIN
- See Also:
- Constant Field Values
TEX_SAW
protected static final int TEX_SAW
- See Also:
- Constant Field Values
TEX_TRI
protected static final int TEX_TRI
- See Also:
- Constant Field Values
TEX_BAND
protected static final int TEX_BAND
- See Also:
- Constant Field Values
TEX_RING
protected static final int TEX_RING
- See Also:
- Constant Field Values
TEX_BANDNOISE
protected static final int TEX_BANDNOISE
- See Also:
- Constant Field Values
TEX_RINGNOISE
protected static final int TEX_RINGNOISE
- See Also:
- Constant Field Values
TEX_NOISESOFT
protected static final int TEX_NOISESOFT
- See Also:
- Constant Field Values
TEX_NOISEPERL
protected static final int TEX_NOISEPERL
- See Also:
- Constant Field Values
woodIntensityData
protected com.jme3.scene.plugins.blender.textures.generating.TextureGeneratorWood.WoodIntensityData woodIntensityData
waveformFunctions
protected static TextureGeneratorWood.WaveForm[] waveformFunctions
TextureGeneratorWood
public TextureGeneratorWood(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator)
- Constructor stores the given noise generator.
- Parameters:
noiseGenerator
- the noise generator
readData
public void readData(Structure tex,
BlenderContext blenderContext)
- Overrides:
readData
in class TextureGenerator
getPixel
public void getPixel(TexturePixel pixel,
float x,
float y,
float z)
- Specified by:
getPixel
in class TextureGenerator
woodIntensity
public 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.
- Parameters:
woodIntData
- x
- X coordinate of the texture pixely
- Y coordinate of the texture pixelz
- Z coordinate of the texture pixel
- Returns:
- wood intensity at position [x, y, z]