AlphaImageTutorial
>Psychtoolbox>PsychDemos>PsychTutorials
Display a gaussian masked image, locked to the cursor position,
using the Screen(‘DrawTexture’) command.
This illustrates an application of OpenGL Alpha blending by displaying
an image masked with a gaussian transparency mask.
In each frame, first the image is drawn. Then a texture acting as a
transparency mask is drawn “over” the image, leaving only selected
parts of the image.
Please note that we only use two textures: One holding the image,
the other defining the mask.
see also: PsychDemos, MovieDemo, DriftDemo
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychDemos/PsychTutorials/AlphaImageTutorial.m