com.jme3.scene.plugins.blender.textures.blending
Interface TextureBlender
- All Known Implementing Classes:
- TextureBlenderAWT, TextureBlenderDDS, TextureBlenderLuminance
public interface TextureBlender
An interface for texture blending classes (the classes that mix the texture
pixels with the material colors).
MTEX_BLEND
static final int MTEX_BLEND
- See Also:
- Constant Field Values
MTEX_MUL
static final int MTEX_MUL
- See Also:
- Constant Field Values
MTEX_ADD
static final int MTEX_ADD
- See Also:
- Constant Field Values
MTEX_SUB
static final int MTEX_SUB
- See Also:
- Constant Field Values
MTEX_DIV
static final int MTEX_DIV
- See Also:
- Constant Field Values
MTEX_DARK
static final int MTEX_DARK
- See Also:
- Constant Field Values
MTEX_DIFF
static final int MTEX_DIFF
- See Also:
- Constant Field Values
MTEX_LIGHT
static final int MTEX_LIGHT
- See Also:
- Constant Field Values
MTEX_SCREEN
static final int MTEX_SCREEN
- See Also:
- Constant Field Values
MTEX_OVERLAY
static final int MTEX_OVERLAY
- See Also:
- Constant Field Values
MTEX_BLEND_HUE
static final int MTEX_BLEND_HUE
- See Also:
- Constant Field Values
MTEX_BLEND_SAT
static final int MTEX_BLEND_SAT
- See Also:
- Constant Field Values
MTEX_BLEND_VAL
static final int MTEX_BLEND_VAL
- See Also:
- Constant Field Values
MTEX_BLEND_COLOR
static final int MTEX_BLEND_COLOR
- See Also:
- Constant Field Values
MTEX_NUM_BLENDTYPES
static final int MTEX_NUM_BLENDTYPES
- See Also:
- Constant Field Values
blend
Image blend(Image image,
Image baseImage,
BlenderContext blenderContext)
- This method blends the given texture with material color and the defined
color in 'map to' panel. As a result of this method a new texture is
created. The input texture is NOT.
- Parameters:
image
- the image we use in blendingbaseImage
- the texture that is underneath the current texture (its pixels
will be used instead of material color)blenderContext
- the blender context
- Returns:
- new image that was created after the blending
copyBlendingData
void copyBlendingData(TextureBlender textureBlender)
- Copies blending data. Used for blending type format changing.
- Parameters:
textureBlender
- the blend data that should be copied