public abstract class TextureGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TextureGenerator.BrightnessAndContrastData
This class contains brightness and contrast data.
|
Modifier and Type | Field and Description |
---|---|
protected TextureGenerator.BrightnessAndContrastData |
bacd |
protected float[][] |
colorBand |
protected int |
flag |
protected Image.Format |
imageFormat |
protected com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator |
noiseGenerator |
Constructor and Description |
---|
TextureGenerator(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator,
Image.Format imageFormat) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyBrightnessAndContrast(TextureGenerator.BrightnessAndContrastData bacd,
TexturePixel texres)
This method applies brightness and contrast for RGB textures.
|
protected void |
applyBrightnessAndContrast(TexturePixel texres,
float contrast,
float brightness)
This method applies brightness and contrast for Luminance textures.
|
Image.Format |
getImageFormat() |
abstract void |
getPixel(TexturePixel pixel,
float x,
float y,
float z) |
void |
readData(Structure tex,
BlenderContext blenderContext) |
protected com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator
protected int flag
protected float[][] colorBand
protected TextureGenerator.BrightnessAndContrastData bacd
protected Image.Format imageFormat
public TextureGenerator(com.jme3.scene.plugins.blender.textures.generating.NoiseGenerator noiseGenerator, Image.Format imageFormat)
public Image.Format getImageFormat()
public void readData(Structure tex, BlenderContext blenderContext)
public abstract void getPixel(TexturePixel pixel, float x, float y, float z)
protected void applyBrightnessAndContrast(TextureGenerator.BrightnessAndContrastData bacd, TexturePixel texres)
protected void applyBrightnessAndContrast(TexturePixel texres, float contrast, float brightness)
texres
- contrast
- brightness
-