Texture combiners

The Texture combiners section combines fragment lighting results or textures entered as input and determines their final color and alpha.

Texture Combiner Settings and Features

This page describes texture combiner settings and features.

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

Add/Delete Buttons

You can add and delete combiners.

texturecombiner_add

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.

General

Under General, you can set the buffer input color, buffer input alpha, and constant color.

texturecombiner_add

Buffer input (color/alpha)

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.

Constant color

The constant color set under Color on the material Properties panel can be used by selecting from a pull-down menu.

Constant Color

Color

Sets the calculation formula and source to be used for the combiner color.

texturecombiner_add

Formula

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.

Scale

Setting a scale causes the value set to be multiplied by the calculation formula.

Source

You can select items used in a formula from a pull-down menu.

Operand

Each R, G, B and A channel of the specified source can be used by selecting from a pull-down menu.

Alpha

You can set the alpha of the constant color and the formula to use under the combiner for alpha.

texturecombiner_add

The formulas available for alpha settings are the same as described for color settings.


CONFIDENTIAL