Answer the question
In order to leave comments, you need to log in
Webgl 2: How to fix color distortion in alpha blending?
I use webgl 2 I draw
a simple triangle on Canvas, the shader is as simple as possible:
out vec4 Color;
void main(){
Color = vec4(1, 0, 0, 0.01);
}
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question