Assimp
v4.1. (December 2018)
|
Defines alpha-blend flags. More...
Static Public Member Functions | |
static AiBlendMode | fromRawValue (int rawValue) |
Utility method for converting from c/c++ based integer enums to java enums. More... | |
Public Attributes | |
ADDITIVE =(0x1) | |
Additive blending. More... | |
DEFAULT =(0x0) | |
Default blending. More... | |
Defines alpha-blend flags.
If you're familiar with OpenGL or D3D, these flags aren't new to you. They define how the final color value of a pixel is computed, basing on the previous color at that pixel and the new color value from the material. The blend formula is:
SourceColor * SourceBlend + DestColor * DestBlend
where DestColor
is the previous color in the framebuffer at this position and SourceColor
is the material color before the transparency calculation.
|
inlinestatic |
Utility method for converting from c/c++ based integer enums to java enums.
This method is intended to be used from JNI and my change based on implementation needs.
rawValue | an integer based enum value (as defined by assimp) |
jassimp.AiBlendMode.ADDITIVE =(0x1) |
Additive blending.
Formula: SourceColor*1 + DestColor*1
jassimp.AiBlendMode.DEFAULT =(0x0) |
Default blending.
Formula: SourceColor*SourceAlpha + DestColor*(1-SourceAlpha)