source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/precompiled/app/OgreIllumModule_Resources/materials/GTPAdvancedEnvMap/diffuseSimple/GTPDiffuseSimpe.material @ 3255

Revision 3255, 1.7 KB checked in by szirmay, 15 years ago (diff)
Line 
1fragment_program GTP/Diffuse/ReduceCubeMapSimple_PS hlsl
2{
3        source GTPDiffuseSimple.hlsl
4        entry_point ReduceCubeMap_PS
5        target ps_3_0
6        //flow_control avoid
7}
8
9
10material GTP/Diffuse/ReduceCubeMap
11{
12 technique
13 {
14      pass
15      {
16         vertex_program_ref GTP/Basic/MPos_NoTransform_VS
17         {       
18           
19         }
20         fragment_program_ref GTP/Diffuse/ReduceCubeMapSimple_PS
21         {
22                  param_named nFace int 0       
23         }
24         texture_unit
25         {
26                       
27         }
28      }
29 }
30}
31
32fragment_program GTP/Diffuse/Poly2PointSimple_PS hlsl
33{
34        source GTPDiffuseSimple.hlsl
35        entry_point Diffuse_Poly2Point_PS
36        target ps_3_0
37        //flow_control prefer
38}
39
40
41material GTP/Diffuse/Poly2PointSimple
42{
43   technique
44   {
45      pass
46      {
47               
48                IllumTechniques
49                {
50                       
51                        RenderTechnique DistanceCubeMap
52                        {
53                                update_interval         1
54                                update_all_face         false
55                                distance_calc           false
56                                face_angle_calc         false
57                                resolution                      64                                             
58                        }
59                        RenderTechnique ReducedColorCubeMap
60                        {
61                                update_interval         1
62                                reduced_resolution 2
63                                resolution 64
64                                distance_calc false
65                                face_angle_calc false
66                                update_all_face         false
67                        }
68                }     
69
70                vertex_program_ref GTP/Basic/Shaded_VS
71                {       
72                        param_named_auto WorldViewProj worldviewproj_matrix
73                param_named_auto WorldInv      inverse_world_matrix 
74                param_named_auto World         world_matrix
75       
76                }
77                fragment_program_ref GTP/Diffuse/Poly2PointSimple_PS
78                {
79                        param_named lastCenter float3 0 0 0
80                }               
81                //Cube map for reflections and refractions     
82                texture_unit
83                {
84                       
85                }
86                //Cube map of distances
87                texture_unit
88                 {
89                 
90                 }
91         }
92   }
93}
Note: See TracBrowser for help on using the repository browser.