122
122
% If staticnoise is set to 1 then we only generate the noise
123
123
% texture once -- This way we can disentangle "noise creation
124
124
% overhead" from actual drawing overhead:
126
126
% Convert Matlab 'noisematrix' to 16 bpc floating point noise texture:
127
127
noisetex = Screen('MakeTexture', win, noisematrix, [], [], 1);