Enum TextureOperation
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 - TextureOperation.Multiply
DiffTexture0 - tex1.png
DiffTextureOp0 - TextureOperation.Add
DiffTexture1 - tex2.png
Written as an equation, the final diffuse term for a specific pixel would be:
diffFinal = DiffColor0 * sampleTex(DiffTexture0, UV0) + sampleTex(DiffTexture1, UV0) * diffContrib;
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public enum TextureOperation
Fields
Name | Description |
---|---|
Add | T = T1 + T2 |
Divide | T = T1 / T2 |
Multiply | T = T1 * T2 |
SignedAdd | T = T1 + (T2 - 0.5) |
SmoothAdd | T = (T1 + T2) - (T1 * T2) |
Subtract | T = T1 - T2 |