Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
shd7bumpdiff_constants.h
Go to the documentation of this file.
1
/*
2
** Command & Conquer Generals Zero Hour(tm)
3
** Copyright 2025 Electronic Arts Inc.
4
**
5
** This program is free software: you can redistribute it and/or modify
6
** it under the terms of the GNU General Public License as published by
7
** the Free Software Foundation, either version 3 of the License, or
8
** (at your option) any later version.
9
**
10
** This program is distributed in the hope that it will be useful,
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
** GNU General Public License for more details.
14
**
15
** You should have received a copy of the GNU General Public License
16
** along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
// bump diffuse map shader constants
20
// Kenny Mitchell - Westwood Studios EA 2002
21
22
#ifndef SHD7BUMPDIFF_CONSTANTS_H
23
#define SHD7BUMPDIFF_CONSTANTS_H
24
25
// vertex shader macros
26
27
#define CV_WORLD_VIEW_PROJECTION 1
28
29
#define CV_WORLD_VIEW_PROJECTION_0 1
30
#define CV_WORLD_VIEW_PROJECTION_1 2
31
#define CV_WORLD_VIEW_PROJECTION_2 3
32
#define CV_WORLD_VIEW_PROJECTION_3 4
33
34
// 5-11 world view & world view inverse transpose
35
36
#define CV_WORLD 12
37
38
#define CV_WORLD_0 12
39
#define CV_WORLD_1 13
40
#define CV_WORLD_2 14
41
#define CV_WORLD_3 15
42
43
// 16-26 lighting constants
44
45
#define CV_BUMPINESS 27
46
47
#define CV_EYE_WORLD 28
48
49
50
// inputs
51
#define V_POSITION v0
52
#define V_NORMAL v1
53
#define V_DIFFUSE v2
54
#define V_TEXTURE v3
55
#define V_S v4
56
#define V_T v5
57
#define V_SxT v6
58
59
60
// registers
61
#define HALF_ANGLE r0
62
#define S_WORLD r1
63
#define T_WORLD r2
64
#define SxT_WORLD r3
65
#define LIGHT_LOCAL r4
66
#define LIGHT_0 r5
67
#define LIGHT_1 r6
68
#define LIGHT_2 r7
69
#define LIGHT_3 r8
70
#define COL r9
71
#define WORLD_VERTEX r10
72
#define EYE_VECTOR r11
73
74
#define WORLD_NORMAL r1
75
76
77
#define OUTPUT_REG r0
78
79
// texture stages
80
#define TEX_CUBEMAP t0
81
82
83
84
#endif
Code
Libraries
Source
WWVegas
wwshade
shd7bumpdiff_constants.h
Generated by
1.13.2