• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**************************************************************************
2  *
3  * Copyright 2011 Lauri Kasanen
4  * All Rights Reserved.
5  *
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:
13  *
14  * The above copyright notice and this permission notice (including the
15  * next paragraph) shall be included in all copies or substantial portions
16  * of the Software.
17  *
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.
25  *
26  **************************************************************************/
27 
28 #ifndef PP_COLORS_H
29 #define PP_COLORS_H
30 
31 static const char nored[] = "FRAG\n"
32    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
33    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
34    "DCL OUT[0], COLOR\n"
35    "DCL SAMP[0]\n"
36    "DCL SVIEW[0], 2D, FLOAT\n"
37    "DCL TEMP[0]\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"
42    "  3: END\n";
43 
44 
45 static const char nogreen[] = "FRAG\n"
46    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
47    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
48    "DCL OUT[0], COLOR\n"
49    "DCL SAMP[0]\n"
50    "DCL SVIEW[0], 2D, FLOAT\n"
51    "DCL TEMP[0]\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"
56    "  3: END\n";
57 
58 
59 static const char noblue[] = "FRAG\n"
60    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
61    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
62    "DCL OUT[0], COLOR\n"
63    "DCL SAMP[0]\n"
64    "DCL SVIEW[0], 2D, FLOAT\n"
65    "DCL TEMP[0]\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"
70    "  3: END\n";
71 
72 #endif
73