Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/Samples/Media/materials/scripts/instancing.material @ 3

Last change on this file since 3 was 3, checked in by anonymous, 17 years ago

=update

File size: 3.2 KB
Line 
1
2vertex_program InstancingCg cg
3{
4        source instancing.cg
5        profiles vs_2_0
6        entry_point instancing_vp
7
8        default_params
9        {
10                param_named_auto ambient ambient_light_colour
11                param_named_auto lightDiffuseColour light_diffuse_colour 0
12                param_named_auto lightPos light_position 0
13                param_named_auto viewProjectionMatrix viewproj_matrix
14                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
15        }
16}
17vertex_program InstancingShadowCasterCg cg
18{
19        source instancing.cg
20        profiles vs_2_0
21        entry_point instancingCaster_vp
22        default_params
23        {
24                param_named_auto ambient ambient_light_colour
25                param_named_auto viewProjectionMatrix viewproj_matrix
26                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
27        }
28}
29vertex_program CrowdCg cg
30{
31        source instancing.cg
32        profiles vs_2_0
33        entry_point crowd_vp
34        default_params
35        {
36                param_named_auto viewProjectionMatrix viewproj_matrix
37                param_named_auto numBones custom 0
38                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
39                param_named_auto lightPos light_position 0
40                param_named_auto lightDiffuseColour light_diffuse_colour 0
41                param_named_auto ambient ambient_light_colour
42        }
43}
44vertex_program CrowdShadowCasterCg cg
45{
46        source instancing.cg
47        profiles vs_2_0
48        entry_point crowdCaster_vp
49        default_params
50        {
51                param_named_auto viewProjectionMatrix viewproj_matrix
52                param_named_auto numBones custom 0
53                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
54                param_named_auto ambient ambient_light_colour
55        }
56}
57
58
59vertex_program InstancingGLSL glsl
60{
61        source instancingVp.glsl
62        preprocessor_defines SHADOW_CASTER=0
63        default_params
64        {
65                param_named_auto ambient ambient_light_colour
66                param_named_auto lightDiffuseColour light_diffuse_colour 0
67                param_named_auto lightPos light_position 0
68                param_named_auto viewProjectionMatrix viewproj_matrix
69                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
70        }
71}
72vertex_program InstancingShadowCasterGLSL glsl
73{
74        source instancingVp.glsl
75        preprocessor_defines SHADOW_CASTER=1
76        default_params
77        {
78                param_named_auto ambient ambient_light_colour
79                param_named_auto viewProjectionMatrix viewproj_matrix
80                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
81        }
82}
83vertex_program CrowdGLSL glsl
84{
85        source crowdVp.glsl
86        preprocessor_defines SHADOW_CASTER=0
87        default_params
88        {
89                param_named_auto viewProjectionMatrix viewproj_matrix
90                param_named_auto numBones custom 0
91                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
92                param_named_auto lightPos light_position 0
93                param_named_auto lightDiffuseColour light_diffuse_colour 0
94                param_named_auto ambient ambient_light_colour
95        }
96}
97vertex_program CrowdShadowCasterGLSL glsl
98{
99        source crowdVp.glsl
100        preprocessor_defines SHADOW_CASTER=1
101        default_params
102        {
103                param_named_auto viewProjectionMatrix viewproj_matrix
104                param_named_auto numBones custom 0
105                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
106                param_named_auto ambient ambient_light_colour
107        }
108}
109
110
111vertex_program Instancing unified
112{
113        delegate InstancingGLSL
114        delegate InstancingCg
115}
116vertex_program InstancingShadowCaster unified
117{
118        delegate InstancingShadowCasterGLSL
119        delegate InstancingShadowCasterCg
120}
121vertex_program Crowd unified
122{
123        delegate CrowdGLSL
124        delegate CrowdCg
125}
126vertex_program CrowdShadowCaster unified
127{
128        delegate CrowdShadowCasterGLSL
129        delegate CrowdShadowCasterCg
130}
131
Note: See TracBrowser for help on using the repository browser.