zeBlend
Use .new("blend") to create the object. It blends the incoming
(source) RGBA values with the RGBA values that are already in the frame
buffer (destination). Refer to the OpenGL reference for meanings of parameters.
An enabled blending object affects all objects after it in the tree of
a scene structure unless the node containing the blending object saves
and restores OpenGL attributes of its predecessor.
:set{...}
Sets blending properties with a Lua table. Valid key-value pairs in
the Lua table are listed as follows.
| Key |
Value |
Type |
Remark |
| sfactor |
zero |
string |
Sets the source factor as GL_ZERO. |
| |
one |
string |
Sets the source factor as GL_ONE. |
| |
one_minus_dst_color |
string |
Sets the source factor as GL_ONE_MINUS_DST_COLOR. |
| |
one_minus_dst_alpha |
string |
sets the source factor as GL_ONE_MINUS_DST_ALPHA. |
| |
one_minus_src_alpha |
string |
sets the source factor as GL_ONE_MINUS_SRC_ALPHA. |
| |
dst_color |
string |
sets the source factor as GL_DST_COLOR. |
| |
dst_alpha |
string |
sets the source factor as GL_DST_ALPHA. |
| |
src_alpha |
string |
sets the source factor as GL_SRC_ALPHA. |
| |
src_alpha_saturate |
string |
sets the source factor as GL_SRC_ALPHA_SATURATE. |
| dfactor |
zero |
string |
Sets the destination factor as GL_ZERO. |
| |
one |
string |
Sets the destination factor as GL_ONE. |
| |
one_minus_src_color |
string |
Sets the destination factor as GL_ONE_MINUS_SRC_COLOR. |
| |
one_minus_src_alpha |
string |
sets the destination factor as GL_ONE_MINUS_SRC_ALPHA. |
| |
one_minus_dst_alpha |
string |
sets the destination factor as GL_ONE_MINUS_DST_ALPHA. |
| |
src_color |
string |
sest the destination factor as GL_SRC_COLOR. |
| |
src_alpha |
string |
sets the destination factor as GL_SRC_ALPHA. |
| |
dst_alpha |
string |
sets the destination factor as GL_DST_ALPHA. |
| zbuffer |
flag |
boolean |
Enables or disables depth buffer test. |
| enable |
flag |
Boolean |
Enables (default) and disables the object |
|