glsl 有错误:无法从 'highp float' 转换为 'highp 3-component vector of float'

zhe*_*ang 5 shader glsl fragment-shader

GLSL 给出这样的错误:

无法从“highp float”转换为“highp float 3分量向量”

T选择了错误部分:

vec3 bRgb = texture2D(u_img1, vUv).rgb;
vec3 aRgb = texture2D(u_aImg, vUv).rgb;
vec3 target1 = aRgb * bRgb;
vec3 alum = dot( aRgb, w );
vec3 blum = dot( bRgb, w );
vec3 clum = dot( target1, w );

vec3 target2 = (alum + blum) / (2. * clum); // This is the error line
gl_FragColor = vec4(target2, 1.);
Run Code Online (Sandbox Code Playgroud)

我可以找到错误行,但我不知道如何让它运行。