!!ARBfp1.0

###################################################################################
#
# Copyright 2009 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of either or both of the following licenses:
#
# 1) the GNU Lesser General Public License version 3, as published by the
# Free Software Foundation; and/or
# 2) the GNU Lesser General Public License version 2.1, as published by
# the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
# PURPOSE.  See the applicable version of the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of both the GNU Lesser General Public
# License version 3 and version 2.1 along with this program.  If not, see
# <http://www.gnu.org/licenses/>
#
# Authored by: Canonical Ltd
#
###################################################################################
 
TEMP tex0;
TEMP texcoord;
TEMP final;


MOV final, {0, 0, 0, 0};
MOV texcoord, {0, 0, 0, 0};

ADD texcoord, program.local[0], fragment.texcoord[0];
TEX tex0, texcoord, texture[0], 2D;
MAD final, tex0, program.local[3], final;

ADD texcoord, program.local[1], fragment.texcoord[0];
TEX tex0, texcoord, texture[0], 2D;
MAD final, tex0, program.local[4], final;

ADD texcoord, program.local[2], fragment.texcoord[0];
TEX tex0, texcoord, texture[0], 2D;
MAD final, tex0, program.local[5], final;

# ADD texcoord, program.local[3], fragment.texcoord[0];
# TEX tex0, texcoord, texture[0], 2D;
# MAD final, tex0, program.local[10], final;

# ADD texcoord, program.local[4], fragment.texcoord[0];
# TEX tex0, texcoord, texture[0], 2D;
# MAD final, tex0, program.local[11], final;

# ADD texcoord, program.local[5], fragment.texcoord[0];
# TEX tex0, texcoord, texture[0], 2D;
# MAD final, tex0, program.local[12], final;

# ADD texcoord, program.local[6], fragment.texcoord[0];
# TEX tex0, texcoord, texture[0], 2D;
# MAD final, tex0, program.local[13], final;


MOV result.color, final;

END

