Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/Media/materials/scripts/Examples.program @ 5131

Last change on this file since 5131 was 5131, checked in by janise, 16 years ago

try to fix shaderbug

File size: 3.8 KB
Line 
1//---------------------------------------------------
2// This file includes a number of basic GPU programs
3// for use in many materials.
4//---------------------------------------------------
5
6
7
8
9// A really basic ambient pass program, support for one texture coodinate set
10vertex_program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL hlsl
11{
12        source Example_Basic.hlsl
13        entry_point ambientOneTexture_vp
14        target vs_1_1
15
16        default_params
17        {
18                param_named_auto worldViewProj worldviewproj_matrix
19                param_named_auto ambient ambient_light_colour
20        }
21}
22// A really basic ambient pass program, support for one texture coodinate set
23vertex_program Ogre/BasicVertexPrograms/AmbientOneTextureGLSL glsl
24{
25        source AmbientOneTexture.glsl
26
27        default_params
28        {
29                param_named_auto ambient ambient_light_colour
30        }
31}
32
33vertex_program Ogre/BasicVertexPrograms/AmbientOneTextureUnified unified
34{
35        delegate Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
36        delegate Ogre/BasicVertexPrograms/AmbientOneTextureHLSL
37}
38
39// Same as below, but for use when rendering texture shadows
40vertex_program Ogre/HardwareSkinningOneWeightShadowCaster cg
41{
42        source Example_Basic.cg
43        entry_point hardwareSkinningOneWeightCaster_vp
44        profiles vs_1_1 arbvp1
45        includes_skeletal_animation true
46}
47// Basic hardware skinning using one indexed weight per vertex
48vertex_program Ogre/HardwareSkinningOneWeight cg
49{
50   source Example_Basic.cg
51   entry_point hardwareSkinningOneWeight_vp
52   profiles vs_1_1 arbvp1
53   includes_skeletal_animation true   
54}
55// Same as below, but for use when rendering texture shadows
56vertex_program Ogre/HardwareSkinningTwoWeightsShadowCasterCg cg
57{
58        source Example_Basic.cg
59        entry_point hardwareSkinningTwoWeightsCaster_vp
60        profiles vs_1_1 arbvp1
61        includes_skeletal_animation true
62}
63
64vertex_program Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL glsl
65{
66        source skinningTwoWeightsShadowCasterVp.glsl
67        includes_skeletal_animation true
68}
69
70vertex_program Ogre/HardwareSkinningTwoWeightsShadowCaster unified
71{
72        delegate Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
73        delegate Ogre/HardwareSkinningTwoWeightsShadowCasterCg
74}
75
76// Basic hardware skinning using two indexed weights per vertex
77vertex_program Ogre/HardwareSkinningTwoWeightsCg cg
78{
79   source Example_Basic.cg
80   entry_point hardwareSkinningTwoWeights_vp
81   profiles vs_1_1 arbvp1
82   includes_skeletal_animation true
83}
84
85vertex_program Ogre/HardwareSkinningTwoWeightsGLSL glsl
86{
87   source skinningTwoWeightsVp.glsl
88   includes_skeletal_animation true
89}
90
91vertex_program Ogre/HardwareSkinningTwoWeights unified
92{
93        delegate Ogre/HardwareSkinningTwoWeightsGLSL
94        delegate Ogre/HardwareSkinningTwoWeightsCg
95       
96   default_params
97   {
98                param_named_auto worldMatrix3x4Array world_matrix_array_3x4
99                param_named_auto viewProjectionMatrix viewproj_matrix
100                param_named_auto lightPos[0] light_position 0
101                param_named_auto lightPos[1] light_position 1
102                param_named_auto lightDiffuseColour[0] light_diffuse_colour 0
103                param_named_auto lightDiffuseColour[1] light_diffuse_colour 1
104   }
105}
106
107// Basic hardware skinning using four indexed weights per vertex
108vertex_program Ogre/HardwareSkinningFourWeights cg
109{
110   source Example_Basic.cg
111   entry_point hardwareSkinningFourWeights_vp
112   profiles vs_1_1 arbvp1
113   includes_skeletal_animation true
114
115}
116// Basic hardware morph animation
117vertex_program Ogre/HardwareMorphAnimation cg
118{
119        source Example_Basic.cg
120        entry_point hardwareMorphAnimation
121        profiles vs_1_1 arbvp1
122
123        includes_morph_animation true
124        default_params
125        {
126                param_named_auto worldViewProj worldviewproj_matrix
127                param_named_auto anim_t animation_parametric
128        }
129}
130// Basic hardware pose animation supporting 2 active poses
131vertex_program Ogre/HardwarePoseAnimation cg
132{
133        source Example_Basic.cg
134        entry_point hardwarePoseAnimation
135        profiles vs_1_1 arbvp1
136
137        includes_pose_animation 2
138        default_params
139        {
140                param_named_auto worldViewProj worldviewproj_matrix
141                param_named_auto anim_t animation_parametric
142        }
143}
144
145
Note: See TracBrowser for help on using the repository browser.