shader not working

Sophia's icon

Can anyone figure out why this shader isn't working?

simulates the flickering of a television screen

Rob Ramirez's icon

can you provide a test patch? nothing looks amiss here to me.

Andrew Benson's icon

Error messages?
When you say "isn't working", what isn't working about it? I imagine it probably doesn't live up to "simulates the flickering of a television screen", but beyond that it looks fine.

AB

Sophia's icon

No error messages; it just doesn't appear to be doing anything- I just see the video passed through jit.gl.slab's right inlet with no apparent alterations.

Andrew, I'm testing this with the patch from your "Your First Shader" article with another jit.qt.movie hooked up to the right inlet of jit.gl.slab.

I'm not sure I have the math correct for my desired effect, which is roughly the below patch, but figured *somthing* would happen.

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

change the line
to

this tells the shader to bind tex1 to the second slab input.

Sophia's icon

Thanks, Rob. That solves it. Now I can play with the math a little.