(glsl, webgl ..), alpha, , RGBA. , 0.0, 0.0, 0.0, 0.0 , 0,0 -. , .
0.0, 0.0, 0.0, 1.0 1,0--. , . , 100% .
, ( ).
, , .
max/min, - ( ) 0 255. 0 , 255 - .
So, in your case, you are asking for a square with 0 red, 0 green and 0 blue (which is just black). However, when you set the transparency (alpha channel) to zero, it appears as white (or, more likely, transparent, and everything behind it is white). When you set the alpha transparency to .5, it displays black (like 0,0,0), but only half visible. When you set alpha transparency to 1.0, it displays a completely opaque black square.
Make sense?
source
share