Sep 26, 2007 at 6:05pm
I get the following error when trying to read the co.alphablend.jxs shader into a jit.gl.slab:
I was expecting it to work like jit.alphablend, after first adding a alphachannel using the cc.alphaglue.jxs shader, but it seems to be expecting something else at the inputs?
macbook pro, osx 10.4.10, jitter 1.6.3
Sep 26, 2007 at 9:54pm
On Sep 26, 2007, at 11:05 AM, hc gilje wrote:
vec3 mixr = mix(a.rgb,b.rgb,(1.-a.a)*amount);
vec3 mixr = mix(a.rgb,b.rgb,vec3(1.-a.a)*vec3(amount));
This error is from Apple’s strict GLSL compiler, which wasn’t
Sorry for the oversight.
Sep 26, 2007 at 10:21pm
In the meantime, I modified the co.multiply.jxs shader and got it working, dont know if it is less efficient than the original alphablend, but it does the job. I just changed one line:
vec4 result = a*a.a+b*(1.-a.a);
You must be logged in to reply to this topic.