com.jme3.scene.plugins.blender.textures.generating
Class TextureGenerator
java.lang.Object
com.jme3.scene.plugins.blender.textures.generating.TextureGenerator
- Direct Known Subclasses:
- TextureGeneratorBlend, TextureGeneratorClouds, TextureGeneratorDistnoise, TextureGeneratorMagic, TextureGeneratorMusgrave, TextureGeneratorNoise, TextureGeneratorStucci, TextureGeneratorVoronoi, TextureGeneratorWood
public abstract class TextureGenerator
- extends java.lang.Object
This class is a base class for texture generators.
Constructor Summary |
TextureGenerator(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator,
Image.Format imageFormat)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
noiseGenerator
protected com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator
flag
protected int flag
colorBand
protected float[][] colorBand
bacd
protected TextureGenerator.BrightnessAndContrastData bacd
imageFormat
protected Image.Format imageFormat
TextureGenerator
public TextureGenerator(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator,
Image.Format imageFormat)
getImageFormat
public Image.Format getImageFormat()
readData
public void readData(Structure tex,
BlenderContext blenderContext)
getPixel
public abstract void getPixel(TexturePixel pixel,
float x,
float y,
float z)
applyBrightnessAndContrast
protected void applyBrightnessAndContrast(TextureGenerator.BrightnessAndContrastData bacd,
TexturePixel texres)
- This method applies brightness and contrast for RGB textures.
- Parameters:
tex
- texture structuretexres
-
applyBrightnessAndContrast
protected void applyBrightnessAndContrast(TexturePixel texres,
float contrast,
float brightness)
- This method applies brightness and contrast for Luminance textures.
- Parameters:
texres
- contrast
- brightness
-