Ignore:
Timestamp:
07/03/07 14:54:14 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/CleanTheLab/src/res/level/shader/world.s3d_shader

    r2453 r2503  
    799799    } 
    800800} 
     801{ 
     802    name "new_shvol_light_soft_tetra_new" 
     803    sort "light_softshvol_tetra" 
     804    ident "eng_shader_std.group" 
     805    param 
     806    { 
     807        env "shaderenv" 
     808        init_method "init_method" 
     809        child_array 
     810        { 
     811            ident "eng_shader_std.lightparam" 
     812            param 
     813            { 
     814                env "shaderenv" 
     815                methods "init_method" 
     816                diffuse 0.419608 0.419608 0.419608 
     817                specular 0.0 0.0 0.0 
     818                range 8.3 
     819                multiplier 0.02 
     820                diffuse_var "light_diffuse" 
     821                ambient_var "light_ambient" 
     822                specular_var "light_specular" 
     823                cenrange_var "light_cenrange" 
     824            } 
     825        } 
     826        { 
     827            ident "eng_shader_shvol.lenparam" 
     828            param 
     829            { 
     830                env "shaderenv" 
     831                methods "main_method" 
     832                max_abs_len 20.0 
     833                max_rel_len 20.0 
     834                shvolparam_var "light_shvolparam" 
     835            } 
     836        } 
     837        { 
     838            ident "eng_shader_std.constfloat" 
     839            param 
     840            { 
     841                env "shaderenv" 
     842                methods "main_method" 
     843                val 0.25 
     844                val_var "size" 
     845            } 
     846        } 
     847        { 
     848            ident "eng_shader_std.lightenter" 
     849            param 
     850            { 
     851                env "shaderenv" 
     852                cenrange_var "light_cenrange" 
     853                enter_array 
     854                { 
     855                    triggers "main_trigger" "mirror_trigger" 
     856                    method "main_method" 
     857                } 
     858            } 
     859        } 
     860        { 
     861            ident "eng_shader_std.lightenum" 
     862            param 
     863            { 
     864                env "shaderenv" 
     865                methods "main_method" 
     866                rank -99999 
     867                cenrange_var "light_cenrange" 
     868                coll_var "receivers" 
     869            } 
     870        } 
     871        { 
     872            ident "eng_shader_shvol.combineparam" 
     873            param 
     874            { 
     875                env "shaderenv" 
     876                methods "main_method" 
     877                lenparam_var "light_shvolparam" 
     878                bloat_var "size" 
     879                bloat_scale 0.5 
     880                shvolparam_var "light_bloated_shvolparam" 
     881            } 
     882        } 
     883        { 
     884            ident "eng_shader_shvol.enum" 
     885            param 
     886            { 
     887                env "shaderenv" 
     888                methods "main_method" 
     889                rank -99999 
     890                cenrange_var "light_cenrange" 
     891                shvolparam_var "light_bloated_shvolparam" 
     892                coll_var "occluders" 
     893            } 
     894        } 
     895        { 
     896            ident "eng_shader_std.totex" 
     897            param 
     898            { 
     899                env "shaderenv" 
     900                methods "main_method" 
     901                new_method "totex_method" 
     902                rank -99999 
     903                size_scale 1.0 
     904                destprop_antialias 0 
     905                dest_array 
     906                { 
     907                    from_var "" 
     908                    to_var "light_brighttex" 
     909                    texprop_restrusage 0 
     910                    texprop_depth 0 
     911                    texprop_float 0 
     912                    texprop_comp 4 
     913                    texprop_bitspercomp 0 
     914                    samplermode_filter 0 
     915                    samplermode_clamp 1 
     916                } 
     917                attrmat_var "light_brightmat" 
     918            } 
     919        } 
     920        { 
     921            ident "eng_shader_std.collexec" 
     922            param 
     923            { 
     924                env "shaderenv" 
     925                methods "totex_method" 
     926                coll_var "receivers" 
     927                rank 99999 
     928                exec_trigger "gen_brightclear_trigger" 
     929                exec_param_array 
     930            } 
     931        } 
     932        { 
     933            ident "eng_shader_special.multilight" 
     934            param 
     935            { 
     936                env "shaderenv" 
     937                first_methods "totex_method" 
     938                cenrange_var "light_cenrange" 
     939                projmat_var "" 
     940                scale_var "size" 
     941                sub_rank 99999 
     942                sub_method "sub_method" 
     943                sub_cenrange_var "sub_light_cenrange" 
     944                sub_projmat_var "" 
     945                sub_bloat_var "sub_light_bloat" 
     946                sub_intens_var "sub_light_intens" 
     947                elem_array 
     948                { 
     949                    offs -0.5 -0.5 -0.5 
     950                    bloat 0.0 
     951                } 
     952                { 
     953                    offs 0.5 0.5 -0.5 
     954                    bloat 0.0 
     955                } 
     956                { 
     957                    offs 0.5 -0.5 0.5 
     958                    bloat 0.0 
     959                } 
     960                { 
     961                    offs -0.5 0.5 0.5 
     962                    bloat 0.0 
     963                } 
     964            } 
     965        } 
     966        { 
     967            ident "eng_shader_shvol.combineparam" 
     968            param 
     969            { 
     970                env "shaderenv" 
     971                methods "sub_method" 
     972                lenparam_var "light_shvolparam" 
     973                bloat_var "sub_light_bloat" 
     974                bloat_scale 1.0 
     975                shvolparam_var "sub_light_shvolparam" 
     976            } 
     977        } 
     978        { 
     979            ident "eng_shader_shvol.perform" 
     980            param 
     981            { 
     982                env "shaderenv" 
     983                methods "sub_method" 
     984                rank 99999 
     985                coll_var "occluders" 
     986                mark_trigger "shvol_mark_trigger" 
     987                mark_param_array 
     988                { 
     989                    src_var "sub_light_cenrange" 
     990                    dest_extvar "ext_light_cenrange" 
     991                } 
     992                { 
     993                    src_var "sub_light_shvolparam" 
     994                    dest_extvar "ext_light_shvolparam" 
     995                } 
     996                paint_method "" 
     997                unmark_shaderprog_ident 
     998                    "levelutil/shader/prog/plain_pointcol.s3d_shaderprog_run" 
     999                unmark_shaderprog_param_array 
     1000                unmark_blend_col_src_fac "one" 
     1001                unmark_blend_col_dest_fac "one" 
     1002                unmark_neg 1 
     1003                unmark_color_var "sub_light_intens" 
     1004                unmark_alpha 0.0 
     1005            } 
     1006        } 
     1007        { 
     1008            ident "eng_shader_std.constvec" 
     1009            param 
     1010            { 
     1011                env "shaderenv" 
     1012                methods "main_method" 
     1013                val 0.5 0.0 0.0 0.0 
     1014                val_var "filterinfo" 
     1015            } 
     1016        } 
     1017        { 
     1018            ident "eng_shader_special.filter" 
     1019            param 
     1020            { 
     1021                env "shaderenv" 
     1022                methods "main_method" 
     1023                rank -99999 
     1024                iter_start 5 
     1025                iter_end 0 
     1026                iter_step -1 
     1027                width_scale 1.0 
     1028                height_scale 1.0 
     1029                destprop_antialias 0 
     1030                passinfo_var "passinfo" 
     1031                src_array "light_brighttex" 
     1032                dest_array 
     1033                { 
     1034                    from_var "" 
     1035                    to_var "light_brighttex" 
     1036                    texprop_restrusage 0 
     1037                    texprop_depth 0 
     1038                    texprop_float 0 
     1039                    texprop_comp 4 
     1040                    texprop_bitspercomp 0 
     1041                    samplermode_filter 0 
     1042                    samplermode_clamp 1 
     1043                } 
     1044                shaderprog_ident 
     1045                    "levelutil/shader/prog/lightfilter.s3d_shaderprog_run" 
     1046                shaderprog_param_array 
     1047                { 
     1048                    src_var "passinfo" 
     1049                    dest_progvar "prog_passinfo" 
     1050                } 
     1051                { 
     1052                    src_var "filterinfo" 
     1053                    dest_progvar "prog_filterinfo" 
     1054                } 
     1055            } 
     1056        } 
     1057        { 
     1058            ident "eng_shader_std.collexec" 
     1059            param 
     1060            { 
     1061                env "shaderenv" 
     1062                methods "main_method" 
     1063                coll_var "receivers" 
     1064                rank 32000 
     1065                exec_trigger "lightbright_trigger" 
     1066                exec_param_array 
     1067                { 
     1068                    src_var "light_cenrange" 
     1069                    dest_extvar "ext_light_cenrange" 
     1070                } 
     1071                { 
     1072                    src_var "light_ambient" 
     1073                    dest_extvar "ext_light_ambient" 
     1074                } 
     1075                { 
     1076                    src_var "light_diffuse" 
     1077                    dest_extvar "ext_light_diffuse" 
     1078                } 
     1079                { 
     1080                    src_var "light_specular" 
     1081                    dest_extvar "ext_light_specular" 
     1082                } 
     1083                { 
     1084                    src_var "light_brighttex" 
     1085                    dest_extvar "ext_light_brighttex" 
     1086                } 
     1087                { 
     1088                    src_var "light_brightmat" 
     1089                    dest_extvar "ext_light_brightmat" 
     1090                } 
     1091            } 
     1092        } 
     1093    } 
     1094} 
    8011095$ 
Note: See TracChangeset for help on using the changeset viewer.