Hi Mario,
I have a question about DriftDemo6 in psychDemos. It uses "Screen('DrawTexture', w, gratingtex1, srcRect, [], angle, [], [], [], [], [], [ 0,yoffset,0,0])" to draw the previously defined grating, I'm confused about how to use the auxparameters, I can't find a demo or function descrbing how to use it in detail.It seems that here "yoffset" means how many pixels the grating will drift in verticle direction. If the first parameter means pixels drifting in horizontal, then what does the third and fourth parameter mean?
In ExpandingRingsDemo auxparameters are defined in "ExpandingRingsShader.frag.txt",but I just can't find one file to define the one in DriftDemo6.
Can you take a little time answering my question? Thanks a lot.
I have a question about DriftDemo6 in psychDemos. It uses "Screen('DrawTexture', w, gratingtex1, srcRect, [], angle, [], [], [], [], [], [ 0,yoffset,0,0])" to draw the previously defined grating, I'm confused about how to use the auxparameters, I can't find a demo or function descrbing how to use it in detail.It seems that here "yoffset" means how many pixels the grating will drift in verticle direction. If the first parameter means pixels drifting in horizontal, then what does the third and fourth parameter mean?
In ExpandingRingsDemo auxparameters are defined in "ExpandingRingsShader.frag.txt",but I just can't find one file to define the one in DriftDemo6.
Can you take a little time answering my question? Thanks a lot.