| 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2 | * Mupen64plus - VertexShaderConstantDef.h * |
| 3 | * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * |
| 4 | * Copyright (C) 2003 Rice1964 * |
| 5 | * * |
| 6 | * This program is free software; you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 2 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, write to the * |
| 18 | * Free Software Foundation, Inc., * |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * |
| 20 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| 21 | |
| 22 | #define iPos v0 |
| 23 | #define iNormal v1 |
| 24 | #define iColor v2 |
| 25 | #define iT0 v3 |
| 26 | |
| 27 | #define R_NORMAL r1 |
| 28 | #define R_DIFFUSE r2 |
| 29 | #define R_TEMP1 r3 |
| 30 | #define R_TEMP2 r4 |
| 31 | #define R_TEMP3 r5 |
| 32 | #define R_SPECULAR r6 |
| 33 | #define R_POS r7 |
| 34 | |
| 35 | #define CV_ZERO 0 |
| 36 | #define CV_ONE 1 |
| 37 | #define CV_HALF 2 |
| 38 | #define CV_TENTH 3 |
| 39 | #define CV_NINE_TENTH 4 |
| 40 | #define CV_200 5 |
| 41 | |
| 42 | #define CV_WORLDVIEWPROJ_0 10 |
| 43 | #define CV_WORLDVIEWPROJ_1 11 |
| 44 | #define CV_WORLDVIEWPROJ_2 12 |
| 45 | #define CV_WORLDVIEWPROJ_3 13 |
| 46 | |
| 47 | #define CV_WORLDVIEW_0 14 |
| 48 | #define CV_WORLDVIEW_1 15 |
| 49 | #define CV_WORLDVIEW_2 16 |
| 50 | #define CV_WORLDVIEW_3 17 |
| 51 | |
| 52 | #define CV_LIGHT1_DIRECTION 30 |
| 53 | #define CV_LIGHT2_DIRECTION 31 |
| 54 | #define CV_LIGHT3_DIRECTION 32 |
| 55 | #define CV_LIGHT4_DIRECTION 33 |
| 56 | #define CV_LIGHT5_DIRECTION 34 |
| 57 | #define CV_LIGHT6_DIRECTION 35 |
| 58 | #define CV_LIGHT7_DIRECTION 36 |
| 59 | |
| 60 | #define CV_LIGHT0_AMBIENT 20 |
| 61 | #define CV_LIGHT1_DIFFUSE 21 |
| 62 | #define CV_LIGHT2_DIFFUSE 22 |
| 63 | #define CV_LIGHT3_DIFFUSE 23 |
| 64 | #define CV_LIGHT4_DIFFUSE 24 |
| 65 | #define CV_LIGHT5_DIFFUSE 25 |
| 66 | #define CV_LIGHT6_DIFFUSE 26 |
| 67 | #define CV_LIGHT7_DIFFUSE 27 |
| 68 | |
| 69 | #define USE_PRIMARY_DEPTH 40 |
| 70 | #define PRIMARY_DEPTH 41 |
| 71 | |
| 72 | #define FOG_IS_ENABLED 42 |
| 73 | |
| 74 | #define USE_PRIMARY_COLOR 43 |
| 75 | #define PRIMARY_COLOR 44 |
| 76 | |
| 77 | #define LIGHTING_ENABLED 45 |
| 78 | |
| 79 | #define FORCE_VTX_ALPHA 46 |
| 80 | #define VTX_ALPHA 47 |
| 81 | |
| 82 | #define Z_HACK_ENABLE 49 |
| 83 | |
| 84 | #define T0_SCALE_X_Y 50 |
| 85 | #define T1_SCALE_X_Y 51 |
| 86 | #define T0_OFFSET_X_Y 52 |
| 87 | #define T1_OFFSET_X_Y 53 |
| 88 | |
| 89 | #define FOG_MUL 60 |
| 90 | #define FOG_ADD 61 |
| 91 | |