[jitter] Re: jxs shaders in jit.gl.lua?
Keith Manlove
keithmanlove at gmail.com
Sun Feb 3 19:16:25 MST 2008
- Previous message: [jitter] Re: jxs shaders in jit.gl.lua?
- Next message: [jitter] Re: jxs shaders in jit.gl.lua?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey Wesley, I'm not around my computer to try it, but are multiple bindings available? Keith On Feb 3, 2008, at 1:24 PM, "Wesley Smith" <wesley.hoke at gmail.com> wrote: > This is how you use shaders. You just make a shader object and call > its bind methods. > wes > > > shader = jit.new("jit.gl.shader", this.drawto) > shader.file = "cc.brcosa.jxs" --shader file to load > > function draw() > > > shader:bind() > > gl.Begin("QUADS") > --top left > gl.TexCoord(0., 1.) > gl.Vertex(-0.5, 0.5, 0.) > > --bottom left > gl.TexCoord(0., 0.) > gl.Vertex(-0.5, -0.5, 0.) > > --bottom right > gl.TexCoord(1., 0.) > gl.Vertex(0.5, -0.5, 0.) > > --top right > gl.TexCoord(1., 1.) > gl.Vertex(0.5, 0.5, 0.) > gl.End() > > shader:unbind() > > end > _______________________________________________ > jitter mailing list > jitter at cycling74.com > http://www.cycling74.com/mailman/listinfo/jitter
- Previous message: [jitter] Re: jxs shaders in jit.gl.lua?
- Next message: [jitter] Re: jxs shaders in jit.gl.lua?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
