[2270] | 1 | // Machine-made Shark 3D Snake Text 2x0 Stream. Format: ascii.
|
---|
| 2 | shader_array
|
---|
| 3 | {
|
---|
| 4 | name "gtp_envmap_two_pass"
|
---|
| 5 | ident "eng_shader_std.group"
|
---|
| 6 | param
|
---|
| 7 | {
|
---|
| 8 | env "shaderenv"
|
---|
| 9 | init_method "init_method"
|
---|
| 10 | child_array
|
---|
| 11 | {
|
---|
| 12 | ident "eng_shader_std.modelmesh"
|
---|
| 13 | param
|
---|
| 14 | {
|
---|
| 15 | env "shaderenv"
|
---|
| 16 | methods "init_method"
|
---|
| 17 | usage "render"
|
---|
| 18 | mesh_var "mesh"
|
---|
| 19 | texchan_var_array "" ""
|
---|
| 20 | tex_attr_var_array "attr0"
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 | {
|
---|
| 24 | ident "eng_shader_std.meshenter"
|
---|
| 25 | param
|
---|
| 26 | {
|
---|
| 27 | env "shaderenv"
|
---|
| 28 | mesh_var_array "mesh"
|
---|
| 29 | insp_ident "insp_shader_bound"
|
---|
| 30 | insp_rank 80000
|
---|
| 31 | insp_color 1.0 0.0 0.0
|
---|
| 32 | enter_array
|
---|
| 33 | {
|
---|
| 34 | triggers "main_trigger"
|
---|
| 35 | method "main_method"
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 | {
|
---|
| 40 | ident "gtp_shader.envmap"
|
---|
| 41 | param
|
---|
| 42 | {
|
---|
| 43 | env "shaderenv"
|
---|
| 44 | methods "main_method"
|
---|
| 45 | rank -90000
|
---|
| 46 | max_ext 256
|
---|
| 47 | max_recursion 1
|
---|
| 48 | ext_dist_scale 20.0
|
---|
| 49 | proj_neg_z 0.1
|
---|
| 50 | proj_pos_z 100.0
|
---|
| 51 | enum_trigger "main_trigger"
|
---|
| 52 | destprop_antialias 0
|
---|
| 53 | mesh_var "mesh"
|
---|
| 54 | dest_array
|
---|
| 55 | {
|
---|
| 56 | from_var ""
|
---|
| 57 | to_var "envmap0"
|
---|
| 58 | texprop_restrusage 0
|
---|
| 59 | texprop_depth 0
|
---|
| 60 | texprop_comp 3
|
---|
| 61 | texprop_float 0
|
---|
| 62 | samplermode_filter 0
|
---|
| 63 | samplermode_clamp 1
|
---|
| 64 | }
|
---|
| 65 | }
|
---|
| 66 | }
|
---|
| 67 | {
|
---|
| 68 | ident "eng_shader_std.paintmesh"
|
---|
| 69 | param
|
---|
| 70 | {
|
---|
| 71 | env "shaderenv"
|
---|
| 72 | methods "main_method"
|
---|
| 73 | rank 12000
|
---|
| 74 | insp_ident "insp_shader_mesh"
|
---|
| 75 | cull_mode "back"
|
---|
| 76 | depth_test "less_equal"
|
---|
| 77 | depth_write 1
|
---|
| 78 | mesh_var "mesh"
|
---|
| 79 | texchan_var_array "envmap0" "dist"
|
---|
| 80 | tex_attr_var_array "attr0"
|
---|
| 81 | attrmat_var_array ""
|
---|
| 82 | use_vertex_bone_wgh 1
|
---|
| 83 | use_vertex_bone_subscr 1
|
---|
| 84 | use_vertex_point 1
|
---|
| 85 | use_vertex_normal 1
|
---|
| 86 | use_vertex_coloralpha 0
|
---|
| 87 | fog_enabled 1
|
---|
| 88 | depth_bias_overlay 1.0
|
---|
| 89 | depth_bias_offs 1.0
|
---|
| 90 | shaderprog_ident
|
---|
| 91 | "levelutil/shader/prog/gtp_envmap.s3d_shaderprog_run"
|
---|
| 92 | shaderprog_param_array
|
---|
| 93 | }
|
---|
| 94 | }
|
---|
| 95 | }
|
---|
| 96 | }
|
---|
| 97 | {
|
---|
| 98 | name "envmap"
|
---|
| 99 | ident "eng_shader_std.group"
|
---|
| 100 | param
|
---|
| 101 | {
|
---|
| 102 | env "shaderenv"
|
---|
| 103 | init_method "init_method"
|
---|
| 104 | child_array
|
---|
| 105 | {
|
---|
| 106 | ident "eng_shader_std.modelmesh"
|
---|
| 107 | param
|
---|
| 108 | {
|
---|
| 109 | env "shaderenv"
|
---|
| 110 | methods "init_method"
|
---|
| 111 | usage "render"
|
---|
| 112 | mesh_var "mesh"
|
---|
| 113 | texchan_var_array ""
|
---|
| 114 | tex_attr_var_array "attr0"
|
---|
| 115 | }
|
---|
| 116 | }
|
---|
| 117 | {
|
---|
| 118 | ident "eng_shader_std.meshenter"
|
---|
| 119 | param
|
---|
| 120 | {
|
---|
| 121 | env "shaderenv"
|
---|
| 122 | mesh_var_array "mesh"
|
---|
| 123 | insp_ident "insp_shader_bound"
|
---|
| 124 | insp_rank 80000
|
---|
| 125 | insp_color 1.0 0.0 0.0
|
---|
| 126 | enter_array
|
---|
| 127 | {
|
---|
| 128 | triggers "main_trigger"
|
---|
| 129 | method "main_method"
|
---|
| 130 | }
|
---|
| 131 | }
|
---|
| 132 | }
|
---|
| 133 | {
|
---|
| 134 | ident "gtp_shader.envmap"
|
---|
| 135 | param
|
---|
| 136 | {
|
---|
| 137 | env "shaderenv"
|
---|
| 138 | methods "init_method"
|
---|
| 139 | rank -90000
|
---|
| 140 | max_ext 512
|
---|
| 141 | max_recursion 2
|
---|
| 142 | ext_dist_scale 20.0
|
---|
| 143 | proj_neg_z 0.1
|
---|
| 144 | proj_pos_z 100.0
|
---|
| 145 | enum_trigger "main_trigger"
|
---|
| 146 | destprop_antialias 0
|
---|
| 147 | mesh_var "mesh"
|
---|
| 148 | dest_array
|
---|
| 149 | {
|
---|
| 150 | from_var ""
|
---|
| 151 | to_var "envmap0"
|
---|
| 152 | texprop_restrusage 0
|
---|
| 153 | texprop_depth 0
|
---|
| 154 | texprop_comp 3
|
---|
| 155 | texprop_float 0
|
---|
| 156 | samplermode_filter 0
|
---|
| 157 | samplermode_clamp 1
|
---|
| 158 | }
|
---|
| 159 | }
|
---|
| 160 | }
|
---|
| 161 | {
|
---|
| 162 | ident "eng_shader_std.paintmesh"
|
---|
| 163 | param
|
---|
| 164 | {
|
---|
| 165 | env "shaderenv"
|
---|
| 166 | methods "main_method"
|
---|
| 167 | rank 12000
|
---|
| 168 | insp_ident "insp_shader_mesh"
|
---|
| 169 | cull_mode "back"
|
---|
| 170 | depth_test "less_equal"
|
---|
| 171 | depth_write 1
|
---|
| 172 | mesh_var "mesh"
|
---|
| 173 | texchan_var_array "envmap0"
|
---|
| 174 | tex_attr_var_array "attr0"
|
---|
| 175 | attrmat_var_array ""
|
---|
| 176 | use_vertex_bone_wgh 1
|
---|
| 177 | use_vertex_bone_subscr 1
|
---|
| 178 | use_vertex_point 1
|
---|
| 179 | use_vertex_normal 1
|
---|
| 180 | use_vertex_coloralpha 0
|
---|
| 181 | fog_enabled 1
|
---|
| 182 | depth_bias_overlay 1.0
|
---|
| 183 | depth_bias_offs 1.0
|
---|
| 184 | shaderprog_ident
|
---|
| 185 | "levelutil/shader/prog/envmap.s3d_shaderprog_run"
|
---|
| 186 | shaderprog_param_array
|
---|
| 187 | }
|
---|
| 188 | }
|
---|
| 189 | }
|
---|
| 190 | }
|
---|
| 191 | {
|
---|
| 192 | name "diffuse"
|
---|
| 193 | ident "eng_shader_std.group"
|
---|
| 194 | param
|
---|
| 195 | {
|
---|
| 196 | env "shaderenv"
|
---|
| 197 | init_method "init_method"
|
---|
| 198 | child_array
|
---|
| 199 | {
|
---|
| 200 | ident "eng_shader_std.modelmesh"
|
---|
| 201 | param
|
---|
| 202 | {
|
---|
| 203 | env "shaderenv"
|
---|
| 204 | methods "init_method"
|
---|
| 205 | mesh_var "mesh"
|
---|
| 206 | texchan_var_array
|
---|
| 207 | tex_attr_var_array
|
---|
| 208 | usage "render"
|
---|
| 209 | tangentu_attr_var
|
---|
| 210 | tangentv_attr_var
|
---|
| 211 | }
|
---|
| 212 | }
|
---|
| 213 | {
|
---|
| 214 | ident "eng_shader_std.meshenter"
|
---|
| 215 | param
|
---|
| 216 | {
|
---|
| 217 | env "shaderenv"
|
---|
| 218 | mesh_var_array "mesh"
|
---|
| 219 | insp_ident "insp_shader_bound"
|
---|
| 220 | insp_rank 80000
|
---|
| 221 | insp_color 1.0 0.0 0.0
|
---|
| 222 | enter_array
|
---|
| 223 | {
|
---|
| 224 | triggers "main_trigger" "mirror_trigger"
|
---|
| 225 | method "main_method"
|
---|
| 226 | }
|
---|
| 227 | {
|
---|
| 228 | triggers "gtp_distance_impostor_trigger"
|
---|
| 229 | method "gtp_distance_impostor_method"
|
---|
| 230 | }
|
---|
| 231 | }
|
---|
| 232 | }
|
---|
| 233 | {
|
---|
| 234 | ident "eng_shader_std.paintmesh"
|
---|
| 235 | param
|
---|
| 236 | {
|
---|
| 237 | env "shaderenv"
|
---|
| 238 | methods "gtp_distance_impostor_method"
|
---|
| 239 | rank 12000
|
---|
| 240 | insp_ident "insp_shader_mesh"
|
---|
| 241 | cull_mode "back"
|
---|
| 242 | depth_test "less_equal"
|
---|
| 243 | depth_write 1
|
---|
| 244 | mesh_var "mesh"
|
---|
| 245 | texchan_var_array
|
---|
| 246 | tex_attr_var_array "attr0"
|
---|
| 247 | attrmat_var_array ""
|
---|
| 248 | use_vertex_bone_wgh 1
|
---|
| 249 | use_vertex_bone_subscr 1
|
---|
| 250 | use_vertex_point 1
|
---|
| 251 | color 1.0 1.0 1.0
|
---|
| 252 | shaderprog_ident
|
---|
| 253 | "levelutil/shader/prog/gtp_distance_impostor.s3d_shaderpro"
|
---|
| 254 | & "g_run"
|
---|
| 255 | shaderprog_param_array
|
---|
| 256 | }
|
---|
| 257 | }
|
---|
| 258 | {
|
---|
| 259 | ident "gtp_shader.createtex"
|
---|
| 260 | param
|
---|
| 261 | {
|
---|
| 262 | env "shaderenv"
|
---|
| 263 | methods "init_method"
|
---|
| 264 | texchan_var "envmap0"
|
---|
| 265 | width 128
|
---|
| 266 | height 128
|
---|
| 267 | texprop_rendertarget 1
|
---|
| 268 | texprop_cube 1
|
---|
| 269 | texprop_float 0
|
---|
| 270 | texprop_comp 4
|
---|
| 271 | texprop_bitspercomp 8
|
---|
| 272 | samplermode_clamp 0
|
---|
| 273 | samplermode_filter 1
|
---|
| 274 | }
|
---|
| 275 | }
|
---|
| 276 | {
|
---|
| 277 | ident "gtp_shader.envmap"
|
---|
| 278 | param
|
---|
| 279 | {
|
---|
| 280 | env "shaderenv"
|
---|
| 281 | methods "main_method"
|
---|
| 282 | rank -9000
|
---|
| 283 | max_ext 256
|
---|
| 284 | max_recursion 1
|
---|
| 285 | ext_dist_scale 20.0
|
---|
| 286 | proj_neg_z 0.1
|
---|
| 287 | proj_pos_z 100.0
|
---|
| 288 | enum_trigger "mirror_trigger"
|
---|
| 289 | destprop_antialias 0
|
---|
| 290 | mesh_var "mesh"
|
---|
| 291 | update_interval 2
|
---|
| 292 | update_all_face 1
|
---|
| 293 | start_frame 0
|
---|
| 294 | last_center_var "lastCenter"
|
---|
| 295 | world_space 1
|
---|
| 296 | dest_array
|
---|
| 297 | {
|
---|
| 298 | from_var "envmap0"
|
---|
| 299 | to_var "envmap0"
|
---|
| 300 | texprop_restrusage 0
|
---|
| 301 | texprop_depth 0
|
---|
| 302 | texprop_comp 3
|
---|
| 303 | texprop_float 0
|
---|
| 304 | samplermode_filter 0
|
---|
| 305 | samplermode_clamp 1
|
---|
| 306 | }
|
---|
| 307 | }
|
---|
| 308 | }
|
---|
| 309 | {
|
---|
| 310 | ident "gtp_shader.createtex"
|
---|
| 311 | param
|
---|
| 312 | {
|
---|
| 313 | env "shaderenv"
|
---|
| 314 | methods "init_method"
|
---|
| 315 | texchan_var "dist"
|
---|
| 316 | width 128
|
---|
| 317 | height 128
|
---|
| 318 | texprop_rendertarget 1
|
---|
| 319 | texprop_cube 1
|
---|
| 320 | texprop_float 1
|
---|
| 321 | texprop_comp 2
|
---|
| 322 | texprop_bitspercomp 16
|
---|
| 323 | samplermode_clamp 0
|
---|
| 324 | samplermode_filter 0
|
---|
| 325 | }
|
---|
| 326 | }
|
---|
| 327 | {
|
---|
| 328 | ident "gtp_shader.envmap"
|
---|
| 329 | param
|
---|
| 330 | {
|
---|
| 331 | env "shaderenv"
|
---|
| 332 | methods "main_method"
|
---|
| 333 | rank -9000
|
---|
| 334 | max_ext 128
|
---|
| 335 | max_recursion 1
|
---|
| 336 | ext_dist_scale 20.0
|
---|
| 337 | proj_neg_z 0.1
|
---|
| 338 | proj_pos_z 100.0
|
---|
| 339 | enum_trigger "gtp_distance_impostor_trigger"
|
---|
| 340 | destprop_antialias 0
|
---|
| 341 | mesh_var "mesh"
|
---|
| 342 | update_interval 2
|
---|
| 343 | update_all_face 1
|
---|
| 344 | start_frame 0
|
---|
| 345 | last_center_var ""
|
---|
| 346 | world_space 1
|
---|
| 347 | dest_array
|
---|
| 348 | {
|
---|
| 349 | from_var "dist"
|
---|
| 350 | to_var "dist"
|
---|
| 351 | texprop_restrusage 0
|
---|
| 352 | texprop_depth 0
|
---|
| 353 | texprop_comp 1
|
---|
| 354 | texprop_float 1
|
---|
| 355 | samplermode_filter 0
|
---|
| 356 | samplermode_clamp 1
|
---|
| 357 | }
|
---|
| 358 | }
|
---|
| 359 | }
|
---|
| 360 | {
|
---|
| 361 | ident "gtp_shader.createtex"
|
---|
| 362 | param
|
---|
| 363 | {
|
---|
| 364 | env "shaderenv"
|
---|
| 365 | methods "init_method"
|
---|
| 366 | texchan_var "filteredenvmap"
|
---|
| 367 | width 4
|
---|
| 368 | height 4
|
---|
| 369 | texprop_rendertarget 1
|
---|
| 370 | texprop_cube 1
|
---|
| 371 | texprop_float 0
|
---|
| 372 | texprop_comp 4
|
---|
| 373 | texprop_bitspercomp 8
|
---|
| 374 | samplermode_clamp 0
|
---|
| 375 | samplermode_filter 1
|
---|
| 376 | }
|
---|
| 377 | }
|
---|
| 378 | {
|
---|
| 379 | ident "gtp_shader.cubetexfilter"
|
---|
| 380 | param
|
---|
| 381 | {
|
---|
| 382 | env "shaderenv"
|
---|
| 383 | methods "main_method"
|
---|
| 384 | rank -8000
|
---|
| 385 | iter_start 0
|
---|
| 386 | iter_end 0
|
---|
| 387 | iter_step 0
|
---|
| 388 | width_scale 1.0
|
---|
| 389 | height_scale 1.0
|
---|
| 390 | destprop_antialias 0
|
---|
| 391 | passinfo_var ""
|
---|
| 392 | src_array "envmap0"
|
---|
| 393 | update_interval 2
|
---|
| 394 | dest_array
|
---|
| 395 | {
|
---|
| 396 | from_var "filteredenvmap"
|
---|
| 397 | to_var "filteredenvmap"
|
---|
| 398 | texprop_restrusage 0
|
---|
| 399 | texprop_depth 0
|
---|
| 400 | texprop_float 0
|
---|
| 401 | texprop_comp 4
|
---|
| 402 | texprop_bitspercomp 0
|
---|
| 403 | samplermode_filter 1
|
---|
| 404 | samplermode_clamp 1
|
---|
| 405 | }
|
---|
| 406 | shaderprog_ident
|
---|
| 407 | "levelutil/shader/prog/gtp_reduce_cubemap.s3d_shaderprog_r"
|
---|
| 408 | & "un"
|
---|
| 409 | shaderprog_param_array
|
---|
| 410 | {
|
---|
| 411 | }
|
---|
| 412 | }
|
---|
| 413 | }
|
---|
| 414 | {
|
---|
| 415 | ident "gtp_shader.createtex"
|
---|
| 416 | param
|
---|
| 417 | {
|
---|
| 418 | env "shaderenv"
|
---|
| 419 | methods "init_method"
|
---|
| 420 | texchan_var "filtereddist"
|
---|
| 421 | width 4
|
---|
| 422 | height 4
|
---|
| 423 | texprop_rendertarget 1
|
---|
| 424 | texprop_cube 1
|
---|
| 425 | texprop_float 1
|
---|
| 426 | texprop_comp 2
|
---|
| 427 | texprop_bitspercomp 16
|
---|
| 428 | samplermode_clamp 0
|
---|
| 429 | samplermode_filter 0
|
---|
| 430 | }
|
---|
| 431 | }
|
---|
| 432 | {
|
---|
| 433 | ident "gtp_shader.cubetexfilter"
|
---|
| 434 | param
|
---|
| 435 | {
|
---|
| 436 | env "shaderenv"
|
---|
| 437 | methods "main_method"
|
---|
| 438 | rank -8000
|
---|
| 439 | iter_start 0
|
---|
| 440 | iter_end 0
|
---|
| 441 | iter_step 0
|
---|
| 442 | width_scale 1.0
|
---|
| 443 | height_scale 1.0
|
---|
| 444 | destprop_antialias 0
|
---|
| 445 | passinfo_var ""
|
---|
| 446 | src_array "dist"
|
---|
| 447 | update_interval 2
|
---|
| 448 | dest_array
|
---|
| 449 | {
|
---|
| 450 | from_var "filtereddist"
|
---|
| 451 | to_var "filtereddist"
|
---|
| 452 | texprop_restrusage 0
|
---|
| 453 | texprop_depth 0
|
---|
| 454 | texprop_float 0
|
---|
| 455 | texprop_comp 4
|
---|
| 456 | texprop_bitspercomp 0
|
---|
| 457 | samplermode_filter 1
|
---|
| 458 | samplermode_clamp 1
|
---|
| 459 | }
|
---|
| 460 | shaderprog_ident
|
---|
| 461 | "levelutil/shader/prog/gtp_reduce_cubemap.s3d_shaderprog_r"
|
---|
| 462 | & "un"
|
---|
| 463 | shaderprog_param_array
|
---|
| 464 | {
|
---|
| 465 | }
|
---|
| 466 | }
|
---|
| 467 | }
|
---|
| 468 | {
|
---|
| 469 | ident "gtp_shader.worldmat"
|
---|
| 470 | param
|
---|
| 471 | {
|
---|
| 472 | env "shaderenv"
|
---|
| 473 | methods "main_method"
|
---|
| 474 | worldmat_var "worldMat"
|
---|
| 475 | }
|
---|
| 476 | }
|
---|
| 477 | {
|
---|
| 478 | ident "gtp_shader.worldmat"
|
---|
| 479 | param
|
---|
| 480 | {
|
---|
| 481 | env "shaderenv"
|
---|
| 482 | methods "main_method"
|
---|
| 483 | worldmat_var "worldMatIT"
|
---|
| 484 | inverse 1
|
---|
| 485 | transpose 1
|
---|
| 486 | }
|
---|
| 487 | }
|
---|
| 488 | {
|
---|
| 489 | ident "eng_shader_std.paintmesh"
|
---|
| 490 | param
|
---|
| 491 | {
|
---|
| 492 | env "shaderenv"
|
---|
| 493 | methods "main_method"
|
---|
| 494 | rank 12000
|
---|
| 495 | insp_ident "insp_shader_mesh"
|
---|
| 496 | cull_mode "back"
|
---|
| 497 | depth_test "less_equal"
|
---|
| 498 | depth_write 1
|
---|
| 499 | mesh_var "mesh"
|
---|
| 500 | texchan_var_array "filteredenvmap" "filtereddist"
|
---|
| 501 | tex_attr_var_array "attr0"
|
---|
| 502 | attrmat_var_array ""
|
---|
| 503 | use_vertex_bone_wgh 1
|
---|
| 504 | use_vertex_bone_subscr 1
|
---|
| 505 | use_vertex_point 1
|
---|
| 506 | use_vertex_normal 1
|
---|
| 507 | use_vertex_coloralpha 0
|
---|
| 508 | shaderprog_ident
|
---|
| 509 | "levelutil/shader/prog/gtp_diffuse.s3d_shaderprog_run"
|
---|
| 510 | shaderprog_param_array
|
---|
| 511 | {
|
---|
| 512 | src_var "lastCenter"
|
---|
| 513 | dest_progvar "lastCenter"
|
---|
| 514 | }
|
---|
| 515 | {
|
---|
| 516 | src_var "worldMat"
|
---|
| 517 | dest_progvar "worldMat"
|
---|
| 518 | }
|
---|
| 519 | {
|
---|
| 520 | src_var "worldMatIT"
|
---|
| 521 | dest_progvar "worldMatIT"
|
---|
| 522 | }
|
---|
| 523 | }
|
---|
| 524 | }
|
---|
| 525 | }
|
---|
| 526 | }
|
---|
| 527 | $ |
---|