-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
executable file
·171 lines (147 loc) · 8.39 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
export LUA_PATH='./?.lua;./src/lua/lua_modules/?.lua;./src/lua/lua_modules/fs/?.lua;./src/lua/lua_modules/?/init.lua'
export SHADER_PATH='./src/game/rasterizer/dx9/shaders'
export SHADER_COMPILE_CMD="luajit src/lua/compile.lua $SHADER_PATH/pixel"
################################################################################
## Compile the pixel shaders
################################################################################
# General shaders
#$SHADER_COMPILE_CMD/general/active_camouflage_draw.fx --shader3
$SHADER_COMPILE_CMD/general/widget_sprite.fx
$SHADER_COMPILE_CMD/general/shadow_convolve.fx
# Transparent water
$SHADER_COMPILE_CMD/transparent_water/transparent_water_opacity.fx
$SHADER_COMPILE_CMD/transparent_water/transparent_water_reflection.fx
$SHADER_COMPILE_CMD/transparent_water/transparent_water_bumpmap_convolution.fx
# Transparent glass
#$SHADER_COMPILE_CMD/transparent_glass/transparent_glass_diffuse.fx
#$SHADER_COMPILE_CMD/transparent_glass/transparent_glass_tint.fx
$SHADER_COMPILE_CMD/transparent_glass/transparent_glass_reflection_bumped.fx
#$SHADER_COMPILE_CMD/transparent_glass/transparent_glass_reflection_flat.fx
#$SHADER_COMPILE_CMD/transparent_glass/transparent_glass_reflection_mirror.fx
# Transparent plasma
$SHADER_COMPILE_CMD/transparent_plasma/transparent_plasma.fx
# Models
$SHADER_COMPILE_CMD/model/model_environment.fx
#$SHADER_COMPILE_CMD/model/model_mask_change_color.fx
#$SHADER_COMPILE_CMD/model/model_mask_multipurpose.fx
#$SHADER_COMPILE_CMD/model/model_mask_none.fx
#$SHADER_COMPILE_CMD/model/model_mask_reflection.fx
#$SHADER_COMPILE_CMD/model/model_mask_self_illumination.fx
# Environment fog
$SHADER_COMPILE_CMD/environment/environment_fog.fx
# Environment reflection
$SHADER_COMPILE_CMD/environment_reflection/environment_reflection_bumped.fx
$SHADER_COMPILE_CMD/environment_reflection/environment_reflection_flat.fx
$SHADER_COMPILE_CMD/environment_reflection/environment_reflection_flat_specular.fx
$SHADER_COMPILE_CMD/environment_reflection/environment_reflection_lightmap_mask.fx
#$SHADER_COMPILE_CMD/environment_reflection/environment_reflection_mirror_bumped.fx --disable
$SHADER_COMPILE_CMD/environment_reflection/environment_reflection_radiosity.fx
# Environment lightmap
$SHADER_COMPILE_CMD/environment_lightmap/environment_lightmap_normal.fx
$SHADER_COMPILE_CMD/environment_lightmap/environment_lightmap_no_illumination.fx --compatible
$SHADER_COMPILE_CMD/environment_lightmap/environment_lightmap_no_illumination_no_lightmap.fx
$SHADER_COMPILE_CMD/environment_lightmap/environment_lightmap_no_lightmap.fx
# Environment diffuse
$SHADER_COMPILE_CMD/environment/environment_diffuse_lights.fx
# Enviroment specular
$SHADER_COMPILE_CMD/environment_specular/environment_specular_light_bumped.fx
$SHADER_COMPILE_CMD/environment_specular/environment_specular_light_flat.fx
$SHADER_COMPILE_CMD/environment_specular/environment_specular_lightmap_bumped.fx
$SHADER_COMPILE_CMD/environment_specular/environment_specular_lightmap_flat.fx
# Environment texture
## Blended
#$SHADER_COMPILE_CMD/environment_texture_blended_biased_add_biased_add.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_biased_add_biased_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_biased_add_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_biased_multiply_biased_add.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_biased_multiply_biased_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_biased_multiply_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_multiply_biased_add.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_multiply_biased_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_blended_multiply_multiply.fx --disable
## Normal
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_biased_add_biased_add.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_biased_add_biased_multiply.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_biased_add_multiply.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_biased_multiply_biased_add.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_biased_multiply_biased_multiply.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_biased_multiply_multiply.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_multiply_biased_add.fx
$SHADER_COMPILE_CMD/environment_texture/normal/environment_texture_normal_multiply_multiply.fx
## Specular
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_biased_add_biased_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_biased_add_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_biased_multiply_biased_add.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_biased_multiply_biased_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_biased_multiply_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_multiply_biased_add.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_multiply_biased_multiply.fx --disable
#$SHADER_COMPILE_CMD/environment_texture_specular_mask_multiply_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_nonlinear_tint.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_nonlinear_tint_add.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_nonlinear_tint_alpha_blend.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_nonlinear_tint_double_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_nonlinear_tint_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_nonlinear_tint_multiply_add.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_normal_tint.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_normal_tint_add.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_normal_tint_alpha_blend.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_normal_tint_double_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_normal_tint_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_multitexture_normal_tint_multiply_add.fx --disable
#$SHADER_COMPILE_CMD/effect_nonlinear_tint.fx --disable
#$SHADER_COMPILE_CMD/effect_nonlinear_tint_add.fx --disable
#$SHADER_COMPILE_CMD/effect_nonlinear_tint_alpha_blend.fx --disable
#$SHADER_COMPILE_CMD/effect_nonlinear_tint_double_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_nonlinear_tint_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_nonlinear_tint_multiply_add.fx --disable
#$SHADER_COMPILE_CMD/effect_normal_tint.fx --disable
#$SHADER_COMPILE_CMD/effect_normal_tint_add.fx --disable
#$SHADER_COMPILE_CMD/effect_normal_tint_alpha_blend.fx --disable
#$SHADER_COMPILE_CMD/effect_normal_tint_double_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_normal_tint_multiply.fx --disable
#$SHADER_COMPILE_CMD/effect_normal_tint_multiply_add.fx --disable
#environment_shadow
#screen_effect
#screen_effect_non_video
#screen_effect_non_video_convolution_mask
#screen_effect_non_video_convolution_none
#screen_effect_non_video_no_convolution_mask
#screen_effect_video
#screen_flash
#screen_meter
#screen_multitexture_add_add
#screen_multitexture_add_dot
#screen_multitexture_add_multiply
#screen_multitexture_add_multiply2x
#screen_multitexture_add_subtract
#screen_multitexture_dot_add
#screen_multitexture_dot_dot
#screen_multitexture_dot_multiply
#screen_multitexture_dot_multiply2x
#screen_multitexture_dot_subtract
#screen_multitexture_multiply2x_add
#screen_multitexture_multiply2x_dot
#screen_multitexture_multiply2x_multiply
#screen_multitexture_multiply2x_multiply2x
#screen_multitexture_multiply2x_subtract
#screen_multitexture_multiply_add
#screen_multitexture_multiply_dot
#screen_multitexture_multiply_multiply
#screen_multitexture_multiply_multiply2x
#screen_multitexture_multiply_subtract
#screen_multitexture_subtract_add
#screen_multitexture_subtract_dot
#screen_multitexture_subtract_multiply
#screen_multitexture_subtract_multiply2x
#screen_multitexture_subtract_subtract
#screen_normal
#sun_glow_convolve
#sun_glow_draw
#transparent_generic
#transparent_meter
################################################################################
## Build shaders
################################################################################
luajit src/lua/build.lua build/EffectCollection_ps_2_0 --encrypt
#luajit src/lua/build.lua build/vsh --vertex