source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/CleanTheLab/bin/res/levelutil/shader/prog/comic.s3d_shaderprog_run @ 2453

Revision 2453, 3.8 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
14// Shader program configuration.
15// Different drivers access different parameters.
16
17ogl
18{
19    glsl
20    {
21        vertshader
22        {
23            code_variant_array
24            {
25                req_ver "1x0"
26                code_array "levelutil/shader/prog/ogl_glsl/"
27                        & "comic_ogl_glsl_vs1x0.s3d_shadercode_run"
28            }
29        }
30        fragshader
31        {
32            code_variant_array
33            {
34                req_ver "1x0"
35                code_array "levelutil/shader/prog/ogl_glsl/"
36                        & "comic_ogl_glsl_fs1x0.s3d_shadercode_run"
37            }
38        }
39        sampler_array "tex0"
40    }
41}
42
43d3d9
44{
45    hlsl_vertshader
46    {
47        code_variant_array
48        {
49            profile "2x0"
50            entry_point "main"
51            code "levelutil/shader/prog/d3d9_hlsl/"
52                    & "comic_d3d9_hlsl_vs2x0.s3d_shadercode_run"
53        }
54        tracking
55        {
56            codevar "projMat"
57            slot 0
58            chan "proj"
59            trans "identity"
60        }
61        {
62            codevar "matView"
63            slot 0
64            chan "view"
65            trans "identity"
66        }
67
68        light_array
69        {
70            cnt 4
71            pos_codevar "lightArray[$].pos"
72            dir_codevar ""
73            ambient_codevar "lightArray[$].ambient"
74            diffuse_codevar "lightArray[$].diffuse"
75            specular_codevar "lightArray[$].specular"
76            atten_codevar "lightArray[$].atten"
77        }
78        light_activecnt_codevar "activeLights"
79
80        mtl
81        {
82            power_codevar "mtrlPower"
83            emissive_codevar "mtrlEmissive"
84        }
85
86    }
87
88    hlsl_pixshader
89    {
90        code_variant_array
91        {
92            profile "2x0"
93            entry_point "main"
94            code "levelutil/shader/prog/d3d9_hlsl/"
95                    & "comic_d3d9_hlsl_ps2x0.s3d_shadercode_run"
96        }
97        fog_codevar "paramFog"
98    }
99}
100
101//#ifdef S3D_GENERAL_PLATFORM_XE
102xe
103{
104    hlsl_vertshader
105    {
106        code_variant_array
107        {
108            profile "2x0"
109            entry_point "main"
110            code "levelutil/shader/prog/d3d9_hlsl/"
111                    & "comic_d3d9_hlsl_vs2x0.s3d_shadercode_run"
112        }
113        tracking
114        {
115            codevar "projMat"
116            slot 0
117            chan "proj"
118            trans "identity"
119        }
120        {
121            codevar "matView"
122            slot 0
123            chan "view"
124            trans "identity"
125        }
126
127        light_array
128        {
129            cnt 4
130            pos_codevar "lightArray[$].pos"
131            dir_codevar ""
132            ambient_codevar "lightArray[$].ambient"
133            diffuse_codevar "lightArray[$].diffuse"
134            specular_codevar "lightArray[$].specular"
135            atten_codevar "lightArray[$].atten"
136        }
137        light_activecnt_codevar "activeLights"
138
139        mtl
140        {
141            //power_codevar "mtrlPower"
142            emissive_codevar "mtrlEmissive"
143        }
144
145    }
146
147    hlsl_pixshader
148    {
149        code_variant_array
150        {
151            profile "2x0"
152            entry_point "main"
153            code "levelutil/shader/prog/d3d9_hlsl/"
154                    & "comic_d3d9_hlsl_ps2x0.s3d_shadercode_run"
155        }
156        fog_codevar "paramFog"
157    }
158}
159//#endif
Note: See TracBrowser for help on using the repository browser.