1 /**************************************************************************
3 * Copyright 2011 Lauri Kasanen
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 **************************************************************************/
31 static const char nored
[] = "FRAG\n"
32 "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
33 "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
36 "DCL SVIEW[0], 2D, FLOAT\n"
38 "IMM FLT32 { 0.0000, 0.0000, 0.0000, 0.0000}\n"
39 " 0: TEX TEMP[0], IN[0].xyyy, SAMP[0], 2D\n"
40 " 1: MOV TEMP[0].x, IMM[0].xxxx\n"
41 " 2: MOV OUT[0], TEMP[0]\n"
45 static const char nogreen
[] = "FRAG\n"
46 "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
47 "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
50 "DCL SVIEW[0], 2D, FLOAT\n"
52 "IMM FLT32 { 0.0000, 0.0000, 0.0000, 0.0000}\n"
53 " 0: TEX TEMP[0], IN[0].xyyy, SAMP[0], 2D\n"
54 " 1: MOV TEMP[0].y, IMM[0].xxxx\n"
55 " 2: MOV OUT[0], TEMP[0]\n"
59 static const char noblue
[] = "FRAG\n"
60 "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
61 "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
64 "DCL SVIEW[0], 2D, FLOAT\n"
66 "IMM FLT32 { 0.0000, 0.0000, 0.0000, 0.0000}\n"
67 " 0: TEX TEMP[0], IN[0].xyyy, SAMP[0], 2D\n"
68 " 1: MOV TEMP[0].z, IMM[0].xxxx\n"
69 " 2: MOV OUT[0], TEMP[0]\n"