source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/bin/res/levelutil/shader/prog/gtp_cau_photonmap.s3d_shaderprog_run @ 2196

Revision 2196, 2.3 KB checked in by szirmay, 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 "3x0"
21            entry_point "main"
22            code "levelutil/shader/prog/d3d9_hlsl/"
23                & "gtp_cau_photonmap_d3d9_hlsl_vs3x0.s3d_shadercode_run"
24        }
25        tracking
26        {
27            codevar "matView"
28            slot 0
29            chan "view"
30           // trans "invtransp"
31            trans "identity"
32        }       
33         {
34            codevar "modelViewInv"
35            slot 0
36            chan "view"
37           // trans "invtransp"
38            trans "inv"
39        }
40         param_array
41        //transforms from world space to light space
42        {
43            src_progvar "lightViewProj"
44            dest_codevar "lightViewProj"
45            type "float4x4"
46        }
47        //transforms from camera view to world space
48        {
49            src_progvar "viewToWorld"
50            dest_codevar "viewToWorld"
51            type "float4x4"
52        }
53        //inverse transpose of camera view to world space
54        {
55            src_progvar "viewToWorldInv"
56            dest_codevar "viewToWorldInv"
57            type "float4x4"
58        }
59        //light posiion in camera view space
60        {
61            src_progvar "lightPosView"
62            dest_codevar "lightPosView"
63            type "float4"
64        }
65        //center point of the distance cubemap in world space
66        {
67            src_progvar "lastCenter"
68            dest_codevar "lastCenter"
69            type "float4"
70        }
71       
72    }
73
74    hlsl_pixshader
75    {
76        code_variant_array
77        {
78            profile "3x0"
79            entry_point "main"
80            code "levelutil/shader/prog/d3d9_hlsl/"
81                    & "gtp_cau_photonmap_d3d9_hlsl_ps3x0.s3d_shadercode_run"
82        }
83       
84    }
85}
Note: See TracBrowser for help on using the repository browser.