masks using render buffer