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

Revision 2131, 2.5 KB checked in by szirmay, 17 years ago (diff)
Line 
1fragment_program GTP/MultiBounce/Reflection_MinMax_PS hlsl
2{
3       
4        source GTPMultipleReflection_MinMax.hlsl
5    entry_point MultipleReflectionPS
6        target ps_3_0
7        flow_control prefer
8}
9
10material GTP/MultiBounce/Reflector_MinMax
11{
12   technique
13   {
14      pass
15      {
16        //cull_hardware none
17                IllumTechniques
18                {
19                        RenderTechnique ColorCubeMap
20                        {
21                                resolution 1024
22                                update_interval         0
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         0
32                                distance_calc false
33                                face_angle_calc false
34                                update_all_face true
35                                //get_minmax true
36                                //min_var_name min
37                                //max_var_name Max                             
38                        }
39                        RenderTechnique ColorCubeMap
40                        {
41                                resolution 512 
42                                layer 1
43                                texture_unit_id 2
44                                update_interval         1
45                                distance_calc false
46                                face_angle_calc false
47                                update_all_face true
48                                render_env false
49                                render_self true
50                                self_material GTP/MultiBounce/NormalDistanceCCW
51                                //get_minmax true
52                                //min_var_name min1
53                                //max_var_name max1                     
54                        }
55                        RenderTechnique ColorCubeMap
56                        {
57                                resolution 512
58                                layer 2
59                                texture_unit_id 3
60                                update_interval         1
61                                distance_calc false
62                                face_angle_calc false
63                                update_all_face true
64                                render_env false
65                                render_self true
66                                self_material GTP/MultiBounce/NormalDistanceCW
67                                //get_minmax true
68                                //min_var_name min2
69                                //max_var_name max2
70                        }                               
71                 }
72                 vertex_program_ref GTP/Basic/Shaded_VS
73         {       
74            param_named_auto WorldViewProj worldviewproj_matrix
75            param_named_auto World world_matrix
76            param_named_auto WorldInv inverse_world_matrix         
77         }
78                 fragment_program_ref GTP/MultiBounce/Reflection_MinMax_PS
79         {
80                        param_named_auto cameraPos camera_position     
81                        param_named min float4 0 0 0 0.76
82                        param_named Max float4 0 0 0 3.077
83                        param_named min1 float4 0 0 0 0.14
84                        param_named max1 float4 0 0 0 0.35
85                        param_named min2 float4 0 0 0 0.15
86                        param_named max2 float4 0 0 0 0.46
87                 }
88               
89                //Cube map of environment
90                texture_unit
91                {
92                        //filtering none
93                }
94                //Cube map of environment distances
95                texture_unit
96                {
97                        filtering none
98                }
99               
100                //Cube map of reflective object's normals and distances CCW
101                texture_unit
102                {
103                        filtering none
104                }               
105                //Cube map of reflective object's normals and distances CW
106                texture_unit
107                {
108                        filtering none
109                }
110          }
111    }
112}
Note: See TracBrowser for help on using the repository browser.