input:the new top layer
back:the back buffer of the composite
mask:an optional mask used for certain blend modes. connect a dummy if you don't need it
