klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 3 forks source link

Gabor alpha mask/alpha blending seems broken. #128

Open cnuahs opened 5 years ago

cnuahs commented 5 years ago

The gabor stimulus seems to mask anything nearby when used with maskTypes = 'GAUSS'. @bartkrekelberg, is this the intended behaviour?

This appears to be due to the fact that the alpha channel is set to 1.0, for the entire virtual texture, in the fragment shader. Should the gaussian envelope (ev) actually be applied to the alpha channel instead?