[jitter] can jitter.gl.shader work with sampler2d?
vade
doktorp at mac.com
Sun Jun 10 13:02:22 MDT 2007
- Previous message: [jitter] can jitter.gl.shader work with sampler2d?
- Next message: [jitter] can jitter.gl.shader work with sampler2d?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
oh. and texture2D is normalized 0 to 1 non rectangluar textures, and texture2D rect is the pixel (actually, I think the texel size). you can normalize by dividing texcoord/texdim to get the 0 - 1 floating point value that is easier to work with. On Jun 10, 2007, at 2:54 PM, Ivica Ico Bukvic wrote: > Hi all, > > In the absence of solution to my previous dilemma, I've delved into > glsl and > as a result, I've arrived to two roadblocks/questions: > > 1) does jitter work with sampler2D instead of sampler2DRect (by the > same > token texture2D as opposed to texture2DRect)? > > 2) in sh.passthrudim.vp.glsl, does texdim0 contain pixel width/ > height of the > texture or is it values between 0 and 1? > > Many thanks! > > Ivica Ico Bukvic, D.M.A. > Composition, Music Technology, CCTAD, CHCI > Virginia Tech > Dept. of Music - 0240 > Blacksburg, VA 24061 > (540) 231-1137 > (540) 231-5034 (fax) > ico at vt.edu > http://www.music.vt.edu/people/faculty/bukvic/ > http://ico.bukvic.net > > > _______________________________________________ > jitter mailing list > jitter at cycling74.com > http://www.cycling74.com/mailman/listinfo/jitter v a d e // www.vade.info abstrakt.vade.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/jitter/attachments/20070610/6cf76854/attachment.htm
- Previous message: [jitter] can jitter.gl.shader work with sampler2d?
- Next message: [jitter] can jitter.gl.shader work with sampler2d?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
