Assimp  v4.1. (December 2018)
jassimp.AiTextureOp Enum Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ fromRawValue()

static AiTextureOp jassimp.AiTextureOp.fromRawValue ( int  rawValue)
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.

Parameters
rawValuean integer based enum value (as defined by assimp)
Returns
the enum value corresponding to rawValue

Member Data Documentation

◆ ADD

jassimp.AiTextureOp.ADD =(0x1)

T = T1 + T2.

◆ DIVIDE

jassimp.AiTextureOp.DIVIDE =(0x3)

T = T1 / T2.

◆ MULTIPLY

jassimp.AiTextureOp.MULTIPLY =(0x0)

T = T1 * T2.

◆ SIGNED_ADD

jassimp.AiTextureOp.SIGNED_ADD =(0x5)

T = T1 + (T2-0.5).

◆ SMOOTH_ADD

jassimp.AiTextureOp.SMOOTH_ADD =(0x4)

T = (T1 + T2) - (T1 * T2) .

◆ SUBTRACT

jassimp.AiTextureOp.SUBTRACT =(0x2)

T = T1 - T2.


The documentation for this enum was generated from the following file: