The Texture combiners section combines fragment lighting results or textures entered as input and determines their final color and alpha.
This page describes texture combiner settings and features.
A | Add/Delete Buttons | Allows you to add/delete combiners. |
---|---|---|
B | General | The General section is used to enable/disable the combiner itself and set input targets to the buffer register. From a pull-down menu you can also select a constant color to use for the settings in the material Properties panel. |
C | Color | Sets the combiner calculation formula and source to be used. |
D | Alpha | Sets the alpha combiner calculation formula and source to be used. |
You can add and delete combiners.
Press the Add button to add a combiner.
Press the Delete button to delete the last combiner added.
Combiners can be created for up to 6 stages.
Under General, you can set the buffer input color, buffer input alpha, and constant color.
Select the input target to the color and alpha buffer registers from a pull-down list.
Pull-Down Menu | Description of Setting |
---|---|
Result output by previous stage | Specifies that the value output from the previous combiner is to be used. |
Buffer from previous stage | Specifies that the value output from the previous buffer is to be used. |
Each buffer input is enabled from Combiner 1.
The constant color set under Color on the material Properties panel can be used by selecting from a pull-down menu.
Sets the calculation formula and source to be used for the combiner color.
You can select the combiner calculation formula from a pull-down menu and set the method for combining specified sources under Source.
Formula
Formula | Description |
---|---|
A | Uses the Source 0 setting. |
A × B | Multiplies the settings made for Source 0 and Source 1. |
A + B | Adds the settings made for Source 0 and Source 1. |
A + B – 0.5 | Adds the settings made for Source 0 and Source 1 and then subtracts 0.5. |
A × C + B × ( 1 – C ) | Multiplies Source 0 and Source 1 and then adds the result of multiplying the setting for Source 1 times (1 minus Source 2). |
A – B | Subtracts the setting made Source 1 from that made for Source 0. |
RGB ← Dot ( A , B ) | Calculates the dot product of the RGB for Source 0 and Source 1 as vectors. This formula can only be selected for color. The same value is output for each color component. |
RGBA ← Dot ( A , B ) | Calculates the dot product of the RGB for Source 0 and Source 1 as vectors. The same value is output for alpha as for each color component. |
( A + B ) × C | Source 0 and Source 1 are added and then multiplied by Source 2. |
( A × B ) + C | Source 0 and Source 1 are multiplied and then added to Source 2. |
Setting a scale causes the value set to be multiplied by the calculation formula.
You can select items used in a formula from a pull-down menu.
Each R, G, B and A channel of the specified source can be used by selecting from a pull-down menu.
You can set the alpha of the constant color and the formula to use under the combiner for alpha.
The formulas available for alpha settings are the same as described for color settings.
CONFIDENTIAL