Madrix script - ALPHA constant ignored
Posted: Thu Jun 01, 2017 1:19 pm
The ALPHA constant is ignored in the SetPixel draw function.
Is there a work around for this problem?
Best regards,
Quinten
Code: Select all
@scriptname="";
@author="";
@version="";
@description="";
void InitEffect()
{
}
void RenderEffect()
{
color red = {255,0,0,0,0};
SetPixel(red, 10,10);
color opacity = {0,0,0,0,0};
SetPixel(opacity,10,10,ALPHA);
//expected result -> The pixel stays red
//returned result -> The pixel becomes black
//ALPHA constant is ignored
}
void MatrixSizeChanged()
{
InitEffect();
}
Best regards,
Quinten