source: GTP/trunk/App/Demos/Illum/IBRBillboardCloudTrees/Shark3D/demo_v5x0x7_t164x31u_enterpr_kwin32/src/res/levelutil/shader/prog/gen_brightmap_for_softshmap.s3d_shaderprog @ 2330

Revision 2330, 2.3 KB checked in by igarcia, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2006 Spinor GmbH.
8//   ######### # # #          All rights reserved.
9//  ##   ##########
10//      ##
11//
12///////////////////////////////////////////////////////////////////////////////
13
14d3d9
15{
16    hlsl_vertshader
17    {
18        code_variant_array
19        {
20            profile "1x1"
21            entry_point "main"
22            code "levelutil/shader/prog/d3d9_hlsl/"
23                    & "gen_brightmap_for_softshmap_d3d9_hlsl_vs1x1."
24                    & "s3d_shadercode_run"
25        }
26
27        tracking
28        {
29            codevar "projMat"
30            slot 0
31            chan "proj"
32            trans "identity"
33        }
34        {
35            codevar "matBone"
36            slot 0
37            chan "bone"
38            trans "identity"
39        }
40
41        param_array
42        {
43            src_progvar "prog_light_projmat"
44            dest_codevar "lightProjMat"
45            type "float4x4"
46        }
47        {
48            src_progvar "prog_light_shmapmat"
49            dest_codevar "lightShmapMat"
50            type "float4x4"
51        }
52
53        predefine_array
54        {
55            name "S3D_USE_BONESUBSCR"
56        }
57        {
58            name "S3D_MATBONE_CNT"
59            val "32"
60        }
61    }
62
63    hlsl_pixshader
64    {
65        code_variant_array
66        {
67            profile "2x0"
68            entry_point "main"
69            code "levelutil/shader/prog/d3d9_hlsl/"
70                    & "gen_brightmap_for_softshmap_d3d9_hlsl_ps2x0."
71                    & "s3d_shadercode_run"
72        }
73       
74        param_array
75        {
76            src_progvar "prog_light_intens"
77            dest_codevar "lightIntens"
78            type "float4"
79        }
80
81        tex_size_codevar_array "" "" "lightShmapSize"
82        tex_rcpsize_codevar_array "" "" "lightShmapRcpSize"
83
84        predefine_array
85        {
86            name "S3D_SHMAP_ZBIAS"
87            //val "0.0003" // For no-filtering
88            val "0.0010" // For 4-filtering
89            //val "0.0010" // For 16-filtering
90        }
91    }
92}
93
Note: See TracBrowser for help on using the repository browser.