mirror of
https://github.com/gre/gl-react.git
synced 2026-01-25 16:43:36 +00:00
really fix it (using another formula..)
This commit is contained in:
parent
57681c09fa
commit
9cce3f0e75
@ -7,5 +7,5 @@ uniform sampler2D t2;
|
||||
void main () {
|
||||
vec4 c1 = texture2D(t1, uv);
|
||||
vec4 c2 = texture2D(t2, uv);
|
||||
gl_FragColor = vec4(mix(c1.rgb, c2.rgb, c2.a), 1.0);
|
||||
gl_FragColor = vec4(mix(c1.rgb, c2.rgb, c2.a), c1.a + c2.a);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user