Texture |
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;
public enum TextureOperation
| Member name | Value | Description |
|---|---|---|
| Multiply | 0 | T = T1 * T2 |
| Add | 1 | T = T1 + T2 |
| Subtract | 2 | T = T1 - T2 |
| Divide | 3 | T = T1 / T2 |
| SmoothAdd | 4 | T = (T1 + T2) - (T1 * T2) |
| SignedAdd | 5 | T = T1 + (T2 - 0.5) |