Docs @ Psychtoolbox Wiki : AlphaDestinationTerm

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

AlphaDestinationTerm

PsychtoolboxPsychAlphaBlending

newDestinationMat=AlphaDestinationTerm(destinationFactorStr, sourceMatrix, destinationMatrix)

AlphaDestinationTerm simuluates the step of multplying an alpha factor with the
destination image in OpenGL alpha blending.

Apply an OpenGL source factor rule such as 'GL_ZERO' to the image matrix
'destinationMat', returing the dot product of destinationMat and the
alpha factor selected by string 'sourceFactor'.

The source image matrix 'sourceMat' is required because destination
factor strings may select alpha values from the source image.

AlphaDestinationTerm calculates with double-precision (64-bit) floating
point arithmatitic whereas the precision of an OpenGL renderer which it
simulates is unspecified, except that OpenGL guarantees perfect precision
for alpha values 0 and 1 (255 via Screen). Comparison of
AlphaDestinationTerm with the OpenGL renderer shows that alpha
multiplicaion discards up to one bit of precision.

see also: AlphaSourceTerm, PsychAlphaBlending




Path   Retrieve current version of AlphaDestinationTerm.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychAlphaBlending/AlphaDestinationTerm.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0209 seconds