table - a Lua table.
Sets blending properties. Valid key-value pairs are listed in the table.
| Key |
Value |
Type |
Remark |
| sfactor |
zero |
string |
Set the source factor as GL_ZERO. |
| |
one |
string |
Set the source factor as GL_ONE. |
| |
one_minus_dst_color |
string |
Set the source factor as GL_ONE_MINUS_DST_COLOR. |
| |
one_minus_dst_alpha |
string |
set the source factor as GL_ONE_MINUS_DST_ALPHA. |
| |
one_minus_src_alpha |
string |
set the source factor as GL_ONE_MINUS_SRC_ALPHA. |
| |
one_minus_src_alpha |
string |
set the source factor as GL_ONE_MINUS_SRC_ALPHA. |
| |
dst_color |
string |
set the source factor as GL_DST_COLOR. |
| |
dst_alpha |
string |
set the source factor as GL_DST_ALPHA. |
| |
src_alpha |
string |
set the source factor as GL_SRC_ALPHA. |
| |
src_alpha_saturate |
string |
set the source factor as GL_SRC_ALPHA_SATURATE. |
| dfactor |
zero |
string |
Set the destination factor as GL_ZERO. |
| |
one |
string |
Set the destination factor as GL_ONE. |
| |
one_minus_src_color |
string |
Set the destination factor as GL_ONE_MINUS_SRC_COLOR. |
| |
one_minus_src_alpha |
string |
set the destination factor as GL_ONE_MINUS_SRC_ALPHA. |
| |
one_minus_dst_alpha |
string |
set the destination factor as GL_ONE_MINUS_DST_ALPHA. |
| |
src_color |
string |
set the destination factor as GL_SRC_COLOR. |
| |
src_color |
string |
set the destination factor as GL_SRC_COLOR. |
| |
src_alpha |
string |
set the destination factor as GL_SRC_ALPHA. |
| |
src_alpha |
string |
set the destination factor as GL_SRC_ALPHA. |
| |
dst_alpha |
string |
set the destination factor as GL_DST_ALPHA. |
| zbuffer |
flag |
boolean |
Enable or disable depth buffer test. |
| enable |
flag |
Boolean |
Enable (default) and disable the object |