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 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 TEMP[0]\n" 37 "IMM FLT32 { 0.0000, 0.0000, 0.0000, 0.0000}\n" 38 " 0: TEX TEMP[0], IN[0].xyyy, SAMP[0], 2D\n" 39 " 1: MOV TEMP[0].x, IMM[0].xxxx\n" 40 " 2: MOV OUT[0], TEMP[0]\n" 41 " 3: END\n"; 42 43 44 static const char nogreen[] = "FRAG\n" 45 "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n" 46 "DCL IN[0], GENERIC[0], PERSPECTIVE\n" 47 "DCL OUT[0], COLOR\n" 48 "DCL SAMP[0]\n" 49 "DCL TEMP[0]\n" 50 "IMM FLT32 { 0.0000, 0.0000, 0.0000, 0.0000}\n" 51 " 0: TEX TEMP[0], IN[0].xyyy, SAMP[0], 2D\n" 52 " 1: MOV TEMP[0].y, IMM[0].xxxx\n" 53 " 2: MOV OUT[0], TEMP[0]\n" 54 " 3: END\n"; 55 56 57 static const char noblue[] = "FRAG\n" 58 "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n" 59 "DCL IN[0], GENERIC[0], PERSPECTIVE\n" 60 "DCL OUT[0], COLOR\n" 61 "DCL SAMP[0]\n" 62 "DCL TEMP[0]\n" 63 "IMM FLT32 { 0.0000, 0.0000, 0.0000, 0.0000}\n" 64 " 0: TEX TEMP[0], IN[0].xyyy, SAMP[0], 2D\n" 65 " 1: MOV TEMP[0].z, IMM[0].xxxx\n" 66 " 2: MOV OUT[0], TEMP[0]\n" 67 " 3: END\n"; 68 69 #endif 70