source: GTP/trunk/App/Demos/Illum/IBRBillboardCloudTrees/OGRE/IBRTreesOGRE/media/oldgeneral/dynamic_skybox.material @ 1493

Revision 1493, 2.3 KB checked in by igarcia, 18 years ago (diff)
Line 
1vertex_program Ogre/DynamicSkyBox_VP cg
2{
3        source skybox_vp.cg
4        entry_point main_vp
5        profiles arbvp1 vs_2_0
6}
7
8fragment_program Ogre/DynamicSkyBox_FP cg
9{
10        source skybox_fp.cg
11        entry_point main_fp
12        profiles ps_2_0 arbfp1
13}
14
15fragment_program Ogre/DynamicSkyBoxTerrain_FP cg
16{
17        source terrain_fp.cg
18        entry_point main_fp
19        profiles ps_2_0 arbfp1
20}
21
22material Examples/Flare03
23{
24        technique
25        {
26                pass
27                {
28                        lighting off
29                        scene_blend add
30                        depth_write off
31                        fog_override true
32
33                        texture_unit
34                        {
35                                texture flare03.png
36                        }
37                }
38        }
39}
40
41material Examples/EveningSkyBoxNoSun
42{
43        technique
44        {
45                pass
46                {
47                        lighting off
48                        depth_write off
49                        //fog_override true
50
51                        //vertex_program_ref Ogre/DynamicSkyBox_FP
52                        //{
53                        //         param_named_auto worldviewproj worldviewproj_matrix                             
54                        //}
55
56                        fragment_program_ref Ogre/DynamicSkyBox_FP
57                        {
58                                param_named_auto ambientlight ambient_light_colour
59                        }
60
61                        texture_unit
62                        {
63                                cubic_texture evening_no_sun.jpg separateUV
64                                tex_address_mode clamp
65                        }
66                }
67        }
68}
69
70material DynamicSkyBoxFloor
71{
72        technique
73        {
74                pass
75                {               
76                        //vertex_program_ref Ogre/DynamicSkyBox_FP
77                        //{
78                        //         param_named_auto worldviewproj worldviewproj_matrix                             
79                        //}
80
81                        fragment_program_ref Ogre/DynamicSkyBoxTerrain_FP
82                        {
83                                param_named_auto ldiffuse light_diffuse_colour 0
84                        }
85
86                        texture_unit
87                        {
88                                //texture grass2.tga
89                                texture white.png
90                        }
91                }
92        }
93}
94
95material Examples/SpaceSkyPlaneNight
96{
97        technique
98        {
99                pass
100                {
101                        lighting off
102                        depth_write off
103                        fog_override true none
104
105                        fragment_program_ref Ogre/DynamicSkyBox_FP
106                        {
107                                param_named ambientlight float4 1.0 1.0 1.0 1.0
108                        }
109
110                        //texture_unit
111                        //{
112                        //      texture spacesky_night.jpg
113                        //      //texture white.png
114                        //}
115
116                        texture_unit
117                        {
118                                texture spacesky_day.jpg
119                                //texture white.png
120                        }
121                }
122        }
123}
Note: See TracBrowser for help on using the repository browser.