source: OGRE/trunk/ogrenew/Samples/Media/materials/scripts/Examples.program @ 692

Revision 692, 1.8 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

RevLine 
[692]1//---------------------------------------------------
2// This file includes a number of basic GPU programs
3// for use in many materials.
4//---------------------------------------------------
5
6
7// A really basic ambient pass program, support for one texture coodinate set
8vertex_program Ogre/BasicVertexPrograms/AmbientOneTexture cg
9{
10        source Example_Basic.cg
11        entry_point ambientOneTexture_vp
12        profiles vs_1_1 arbvp1
13}
14
15// Same as below, but for use when rendering texture shadows
16vertex_program Ogre/HardwareSkinningOneWeightShadowCaster cg
17{
18        source Example_Basic.cg
19        entry_point hardwareSkinningOneWeightCaster_vp
20        profiles vs_1_1 arbvp1
21        includes_skeletal_animation true
22}
23// Basic hardware skinning using one indexed weight per vertex
24vertex_program Ogre/HardwareSkinningOneWeight cg
25{
26   source Example_Basic.cg
27   entry_point hardwareSkinningOneWeight_vp
28   profiles vs_1_1 arbvp1
29   includes_skeletal_animation true   
30}
31// Basic hardware skinning using four indexed weights per vertex
32vertex_program Ogre/HardwareSkinningFourWeights cg
33{
34   source Example_Basic.cg
35   entry_point hardwareSkinningFourWeights_vp
36   profiles vs_1_1 arbvp1
37   includes_skeletal_animation true
38}
39// Basic hardware morph animation
40vertex_program Ogre/HardwareMorphAnimation cg
41{
42        source Example_Basic.cg
43        entry_point hardwareMorphAnimation
44        profiles vs_1_1 arbvp1
45
46        includes_morph_animation true
47        default_params
48        {
49                param_named_auto worldViewProj worldviewproj_matrix
50                param_named_auto anim_t animation_parametric
51        }
52}
53// Basic hardware pose animation supporting 2 active poses
54vertex_program Ogre/HardwarePoseAnimation cg
55{
56        source Example_Basic.cg
57        entry_point hardwarePoseAnimation
58        profiles vs_1_1 arbvp1
59
60        includes_pose_animation 2
61        default_params
62        {
63                param_named_auto worldViewProj worldviewproj_matrix
64                param_named_auto anim_t animation_parametric
65        }
66}
67
68
Note: See TracBrowser for help on using the repository browser.