diff options
Diffstat (limited to 'src/imports/particles/resources/ctfragment.shader')
-rw-r--r-- | src/imports/particles/resources/ctfragment.shader | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/particles/resources/ctfragment.shader b/src/imports/particles/resources/ctfragment.shader index bf538e3046..a17f5841ca 100644 --- a/src/imports/particles/resources/ctfragment.shader +++ b/src/imports/particles/resources/ctfragment.shader @@ -1,10 +1,11 @@ uniform sampler2D texture; uniform sampler2D colortable; +uniform sampler2D opacitytable; varying highp vec2 fTex; varying lowp vec4 fColor; varying lowp float tt; void main() { - gl_FragColor = (texture2D(texture, fTex).w) * fColor * texture2D(colortable, vec2(tt, 0.5)); + gl_FragColor = (texture2D(texture, fTex).w) * fColor * texture2D(colortable, vec2(tt, 0.5)) *( texture2D(opacitytable, vec2(tt, 0.5)).w); } |