Assimp
v4.1. (December 2018)
|
Defines how the Nth texture of a specific type is combined with the result of all previous layers. More...
Static Public Member Functions | |
static AiTextureOp | fromRawValue (int rawValue) |
Utility method for converting from c/c++ based integer enums to java enums. More... | |
Public Attributes | |
ADD =(0x1) | |
T = T1 + T2 . More... | |
DIVIDE =(0x3) | |
T = T1 / T2 . More... | |
MULTIPLY =(0x0) | |
T = T1 * T2 . More... | |
SIGNED_ADD =(0x5) | |
T = T1 + (T2-0.5) . More... | |
SMOOTH_ADD =(0x4) | |
T = (T1 + T2) - (T1 * T2) . More... | |
SUBTRACT =(0x2) | |
T = T1 - T2 . More... | |
Defines how the Nth texture of a specific type is combined with the result of all previous layers.
Example (left: key, right: value):
DiffColor0 - gray DiffTextureOp0 - aiTextureOpMultiply DiffTexture0 - tex1.png DiffTextureOp0 - aiTextureOpAdd DiffTexture1 - tex2.png
Written as equation, the final diffuse term for a specific pixel would be:
diffFinal = DiffColor0 * sampleTex(DiffTexture0,UV0) + sampleTex(DiffTexture1,UV0) * diffContrib;
where 'diffContrib' is the intensity of the incoming light for that pixel.
|
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.AiTextureOp.ADD =(0x1) |
T = T1 + T2
.
jassimp.AiTextureOp.DIVIDE =(0x3) |
T = T1 / T2
.
jassimp.AiTextureOp.MULTIPLY =(0x0) |
T = T1 * T2
.
jassimp.AiTextureOp.SIGNED_ADD =(0x5) |
T = T1 + (T2-0.5)
.
jassimp.AiTextureOp.SMOOTH_ADD =(0x4) |
T = (T1 + T2) - (T1 * T2)
.
jassimp.AiTextureOp.SUBTRACT =(0x2) |
T = T1 - T2
.