XML Feeds

.

[jitter] first shader

Wesley Smith wesley.hoke at gmail.com
Thu Nov 8 12:40:19 MST 2007


jit.gl.videoplane @blend_enable 1?
wes

On 11/8/07, marius schebella <marius.schebella at gmail.com> wrote:
> hello andrew,
> thanks, that solved one of the problems
> I read that glsl is not optimized for conditional stuff, but I have to
> learn more glsl commands to see what could replace them.
> the thing is, I only want a comparison of 3 of the 4 channels. yes, I
> would like to boost efficiency by using glsl internal commands.
> marius.
>
> andrew benson wrote:
> > your problem is most likely in this line:
> >
> >  <param name="image" type="float" default="0" />
> >
> > Change type to "int" and you will probably be okay.
> >
> > FWIW, I would recommend ditching all of that conditional stuff (if...)
> > and replacing with mix() and step() type functions.  Support for
> > conditional statements is pretty unpredictable in GLSL.
> >
> > Best,
> > Andrew B.
> > _______________________________________________
> > jitter mailing list
> > jitter at cycling74.com
> > http://www.cycling74.com/mailman/listinfo/jitter
> >
>
> _______________________________________________
> jitter mailing list
> jitter at cycling74.com
> http://www.cycling74.com/mailman/listinfo/jitter
>


More information about the jitter mailing list