Blendop translucency

From Bennu Wiki
Jump to navigation Jump to search


INT blendop_translucency ( <INT blendTable> , <FLOAT amount> )

Modify the blend table by setting how much the object is visible and how much what is behind the source. This means that the graphic the blend operation is assigned to will appear translucent or transparent.

This will modify both the source and destination section of the blend table. The source is multiplied by amount and the destination is multiplied by 1-amount.


INT blendTable - The blend table to modify.
FLOAT amount - Opacity factor ( 1 (opaque) - 0 (transparent) ).


INT : true


To set an amount of 0.5 is the same as doing using a blit flag of B_TRANSLUCENT.

Blendops Functions