558
558
% channel encodes t-coord of 2D texture coordinate, blue encodes
559
559
% interpolated z-buffer depths.
560
560
[ctx.silhouetteWidth, ctx.silhouetteHeight] = RectSize(ctx.rect);
561
ctx.silhouetteBuffer = Screen('OpenOffscreenWindow', ctx.parentWin, [0 0 0 0], [0, 0, ctx.silhouetteWidth, ctx.silhouetteHeight], 128);
561
ctx.silhouetteBuffer = Screen('OpenOffscreenWindow', ctx.parentWin, [0 0 0 0], [0, 0, ctx.silhouetteWidth, ctx.silhouetteHeight], 128, 32);
563
563
% Retrieve OpenGL texture handle for the sihouetteBuffer:
564
564
ctx.silhouetteTexture = Screen('GetOpenGLTexture', ctx.parentWin, ctx.silhouetteBuffer);