all blending modes for pattern and dual brush
This commit is contained in:
@@ -22,6 +22,7 @@ void main()
|
||||
#include "include/ext-fb-fetch.glsl"
|
||||
#include "include/rand.glsl"
|
||||
#include "include/color.glsl"
|
||||
#include "include/blend-stroke.glsl"
|
||||
|
||||
uniform mediump sampler2D tex;
|
||||
uniform mediump sampler2D tex_bg;
|
||||
@@ -41,6 +42,7 @@ uniform mediump float pattern_contr;
|
||||
uniform mediump float pattern_depth;
|
||||
uniform mediump vec2 pattern_offset;
|
||||
uniform mediump bool pattern_invert;
|
||||
uniform mediump int patt_blend_mode;
|
||||
|
||||
in mediump vec2 uv;
|
||||
in mediump vec2 uv_2;
|
||||
@@ -68,7 +70,7 @@ void main()
|
||||
patt = brightness1(patt, 1.0 - pattern_bright);
|
||||
if (pattern_contr != 0.5)
|
||||
patt = contrast1(patt, pattern_contr);
|
||||
fg.a = mix(fg.a, fg.a * patt, pattern_depth);
|
||||
fg.a = blend_stroke(fg.a, patt, pattern_depth, patt_blend_mode);
|
||||
}
|
||||
|
||||
#if defined(GL_EXT_shader_framebuffer_fetch)
|
||||
|
||||
Reference in New Issue
Block a user