[1060] | 1 | material Flare
|
---|
| 2 | {
|
---|
| 3 | technique
|
---|
| 4 | {
|
---|
| 5 | pass
|
---|
| 6 | {
|
---|
| 7 | //cull_hardware none
|
---|
| 8 | lighting off
|
---|
[1336] | 9 | scene_blend add
|
---|
[1060] | 10 | //scene_blend_op add
|
---|
| 11 | //scene_blend_op_alpha add
|
---|
| 12 | //scene_blend_alpha add
|
---|
[1424] | 13 | depth_check off
|
---|
[1060] | 14 | depth_write off
|
---|
| 15 |
|
---|
[1336] | 16 | texture_unit
|
---|
| 17 | {
|
---|
| 18 | texture flare.png
|
---|
| 19 | }
|
---|
[1060] | 20 | }
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 |
|
---|
[777] | 24 | material Examples/MorningSkyBox
|
---|
| 25 | {
|
---|
| 26 | technique
|
---|
| 27 | {
|
---|
| 28 | pass
|
---|
| 29 | {
|
---|
| 30 | lighting off
|
---|
| 31 | depth_write off
|
---|
| 32 |
|
---|
| 33 | texture_unit
|
---|
| 34 | {
|
---|
| 35 | cubic_texture morning.jpg separateUV
|
---|
| 36 | tex_address_mode clamp
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | material GameTools/Rockwall
|
---|
| 43 | {
|
---|
| 44 | technique
|
---|
| 45 | {
|
---|
| 46 | pass
|
---|
| 47 | {
|
---|
| 48 | lighting off
|
---|
| 49 | texture_unit
|
---|
| 50 | {
|
---|
| 51 | texture rockwall.tga
|
---|
| 52 | env_map cubic_normal
|
---|
| 53 | //vertex_texture true
|
---|
| 54 | }
|
---|
| 55 | }
|
---|
| 56 | }
|
---|
| 57 | }
|
---|
| 58 |
|
---|
[1081] | 59 | material GameTools/Standard
|
---|
| 60 | {
|
---|
| 61 | technique
|
---|
| 62 | {
|
---|
| 63 | pass
|
---|
| 64 | {
|
---|
| 65 | ambient 0.1 0.11 0.15
|
---|
| 66 | diffuse 0.8 0.9 1.0
|
---|
| 67 | }
|
---|
| 68 | }
|
---|
| 69 | }
|
---|
| 70 |
|
---|
[777] | 71 |
|
---|
| 72 |
|
---|
| 73 | material GameTools/UVShader
|
---|
| 74 | {
|
---|
| 75 | technique
|
---|
| 76 | {
|
---|
| 77 | pass
|
---|
| 78 | {
|
---|
[835] | 79 | vertex_program_ref GameTools/UV_VS
|
---|
[777] | 80 | {
|
---|
| 81 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 82 | }
|
---|
[835] | 83 | fragment_program_ref GameTools/UV_PS
|
---|
[777] | 84 | {
|
---|
| 85 | param_named_auto ID custom 0
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 | }
|
---|
| 90 | }
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | material GameTools/DistanceShader
|
---|
| 94 | {
|
---|
| 95 |
|
---|
| 96 | technique
|
---|
| 97 | {
|
---|
| 98 | pass
|
---|
| 99 | {
|
---|
[835] | 100 | vertex_program_ref GameTools/DistanceVS
|
---|
[777] | 101 | {
|
---|
| 102 | param_named_auto worldView worldview_matrix
|
---|
| 103 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 104 | }
|
---|
[835] | 105 | fragment_program_ref GameTools/DistancePS
|
---|
[777] | 106 | {
|
---|
| 107 |
|
---|
| 108 | }
|
---|
| 109 |
|
---|
| 110 | }
|
---|
| 111 | }
|
---|
| 112 | }
|
---|
| 113 |
|
---|
| 114 | material GameTools/SceneCameraDepthShader
|
---|
| 115 | {
|
---|
| 116 |
|
---|
| 117 | technique
|
---|
| 118 | {
|
---|
| 119 | scene_blend none
|
---|
| 120 |
|
---|
| 121 | pass
|
---|
| 122 | {
|
---|
[835] | 123 | vertex_program_ref GameTools/SceneCameraDepthVS
|
---|
[777] | 124 | {
|
---|
| 125 | param_named_auto worldView worldview_matrix
|
---|
| 126 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 127 | param_named_auto farplane far_clip_distance
|
---|
| 128 | }
|
---|
[835] | 129 | fragment_program_ref GameTools/SceneDepthPS
|
---|
[777] | 130 | {
|
---|
| 131 |
|
---|
| 132 | }
|
---|
| 133 |
|
---|
| 134 | }
|
---|
| 135 | }
|
---|
| 136 | }
|
---|
| 137 |
|
---|
[1102] | 138 | material GameTools/FocusingShader
|
---|
| 139 | {
|
---|
| 140 |
|
---|
| 141 | technique
|
---|
| 142 | {
|
---|
| 143 | scene_blend none
|
---|
| 144 |
|
---|
| 145 | pass
|
---|
| 146 | {
|
---|
| 147 | vertex_program_ref GameTools/FocusingVS
|
---|
| 148 | {
|
---|
[1131] | 149 | param_named_auto world world_matrix
|
---|
[1102] | 150 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
[1131] | 151 | param_named lightTransform matrix4x4
|
---|
[1102] | 152 | }
|
---|
| 153 | fragment_program_ref GameTools/FocusingPS
|
---|
| 154 | {
|
---|
| 155 |
|
---|
| 156 | }
|
---|
| 157 |
|
---|
| 158 | }
|
---|
| 159 | }
|
---|
| 160 | }
|
---|
| 161 |
|
---|
[777] | 162 | material GameTools/ShadowMapDepth
|
---|
| 163 | {
|
---|
| 164 |
|
---|
| 165 | technique
|
---|
| 166 | {
|
---|
| 167 | scene_blend none
|
---|
| 168 |
|
---|
| 169 | pass
|
---|
| 170 | {
|
---|
[1118] | 171 | //cull_hardware anticlockwise
|
---|
[1131] | 172 | //cull_hardware none
|
---|
[807] | 173 |
|
---|
[777] | 174 | vertex_program_ref GameTools/ShadowMap/DepthVS
|
---|
| 175 | {
|
---|
[1131] | 176 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
[777] | 177 | }
|
---|
| 178 | fragment_program_ref GameTools/ShadowMap/DepthPS
|
---|
| 179 | {
|
---|
| 180 |
|
---|
| 181 | }
|
---|
[807] | 182 |
|
---|
[777] | 183 | }
|
---|
| 184 | }
|
---|
[1131] | 185 | }
|
---|
| 186 |
|
---|
| 187 |
|
---|
| 188 | material GameTools/Blur
|
---|
| 189 | {
|
---|
| 190 |
|
---|
| 191 | technique
|
---|
| 192 | {
|
---|
| 193 |
|
---|
| 194 | pass
|
---|
| 195 | {
|
---|
| 196 | vertex_program_ref GameTools/BlurVS
|
---|
| 197 | {
|
---|
| 198 |
|
---|
| 199 | }
|
---|
| 200 | fragment_program_ref GameTools/BlurPS
|
---|
| 201 | {
|
---|
| 202 | param_named_auto width viewport_width
|
---|
| 203 | param_named_auto height viewport_height
|
---|
| 204 | }
|
---|
| 205 | texture_unit
|
---|
| 206 | {
|
---|
| 207 | filtering bilinear
|
---|
| 208 | }
|
---|
| 209 |
|
---|
| 210 | }
|
---|
| 211 | }
|
---|
[1424] | 212 | }
|
---|
| 213 |
|
---|
| 214 | vertex_program PhaseVS hlsl
|
---|
| 215 | {
|
---|
| 216 | source GameTools_Phase.hlsl
|
---|
| 217 | entry_point PhaseVS
|
---|
| 218 | target vs_2_0
|
---|
| 219 | }
|
---|
| 220 |
|
---|
| 221 | fragment_program Phase_HenyeyGreenSteinPS hlsl
|
---|
| 222 | {
|
---|
| 223 | source GameTools_Phase.hlsl
|
---|
| 224 | entry_point HenyeyGreensteinPS
|
---|
| 225 | target ps_2_0
|
---|
| 226 | }
|
---|
| 227 |
|
---|
| 228 | material Phase_HenyeyGreenStein
|
---|
| 229 | {
|
---|
| 230 |
|
---|
| 231 | technique
|
---|
| 232 | {
|
---|
| 233 |
|
---|
| 234 | pass
|
---|
| 235 | {
|
---|
| 236 | vertex_program_ref PhaseVS
|
---|
| 237 | {
|
---|
| 238 |
|
---|
| 239 | }
|
---|
| 240 | fragment_program_ref Phase_HenyeyGreenSteinPS
|
---|
| 241 | {
|
---|
| 242 |
|
---|
| 243 | }
|
---|
| 244 |
|
---|
| 245 | }
|
---|
| 246 | }
|
---|
[777] | 247 | } |
---|