source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce/multipleRefraction/GTPMultipleRefraction.material @ 2131

Revision 2131, 2.1 KB checked in by szirmay, 17 years ago (diff)
Line 
1fragment_program GTP/MultiBounce/Refraction_PS hlsl
2{
3       
4        source GTPMultipleReflection.hlsl
5    entry_point MultipleRefractionPS
6        target ps_3_0
7        flow_control prefer
8}
9
10material GTP/MultiBounce/Refractor
11{
12   technique
13   {
14      pass
15      {
16        //cull_hardware none
17                IllumTechniques
18                {
19                        RenderTechnique ColorCubeMap
20                        {
21                                resolution 1024
22                                update_interval         1
23                                distance_calc false
24                                face_angle_calc false
25                                update_all_face true
26                                                               
27                        }
28                        RenderTechnique DistanceCubeMap
29                        {
30                                resolution 1024
31                                update_interval         1
32                                distance_calc false
33                                face_angle_calc false
34                                update_all_face true                           
35                        }
36                        RenderTechnique ColorCubeMap
37                        {
38                                resolution 1024
39                                layer 1
40                                texture_unit_id 2
41                                update_interval         1
42                                distance_calc false
43                                face_angle_calc false
44                                update_all_face true
45                                render_env false
46                                render_self true
47                                self_material GTP/MultiBounce/NormalDistanceCCW                         
48                        }
49                        RenderTechnique ColorCubeMap
50                        {
51                                resolution 1024
52                                layer 2
53                                texture_unit_id 3
54                                update_interval         1
55                                distance_calc false
56                                face_angle_calc false
57                                update_all_face true
58                                render_env false
59                                render_self true
60                                self_material GTP/MultiBounce/NormalDistanceCW                 
61                        }                               
62                 }
63                 vertex_program_ref GTP/Basic/Shaded_CPos_VS
64         {       
65                param_named_auto WorldViewProj worldviewproj_matrix
66                param_named_auto World         world_matrix
67                param_named_auto WorldInv inverse_world_matrix 
68                 }
69                 fragment_program_ref GTP/MultiBounce/Refraction_PS
70         {
71                        param_named_auto cameraPos camera_position                                             
72                        param_named refIndex float 0.77
73                        param_named sFresnel float 0.04
74                 }
75               
76                //Cube map of environment
77                texture_unit
78                {
79                        //filtering none
80                }
81                //Cube map of environment distances
82                texture_unit
83                {
84                        filtering none
85                }
86               
87                //Cube map of reflective object's normals and distances CCW
88                texture_unit
89                {
90                        filtering none
91                }               
92                //Cube map of reflective object's normals and distances CW
93                texture_unit
94                {
95                        filtering none
96                }
97          }
98    }
99}
Note: See TracBrowser for help on using the repository browser.