source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.materials @ 2024

Revision 2024, 1.7 KB checked in by szirmay, 17 years ago (diff)
Line 
1material GTP/Caustic/PhotonMap_HitEnv
2{
3 technique
4 {
5  pass
6  {   
7   vertex_program_ref GTP/Basic/Shaded_VS
8   {
9     param_named_auto WorldViewProj worldviewproj_matrix
10     param_named_auto World         world_matrix
11     param_named_auto WorldInv      inverse_world_matrix
12   }
13   vertex_program_ref GTP/Caustic/PhotonMapHitEnv_PS
14   {
15     param_named_auto cameraPos camera_position
16     param_named float3 lastCenter 0 0 0
17     param_named float  reflIndex 0.85 
18   }
19  }
20 }
21}
22
23material GTP/Caustic/CauCube_PointSprite
24{
25 technique
26 {
27  pass
28  {
29   cull_hardware none
30   scene_blend src_alpha one
31   depth_check off
32   point_sprites on
33   vertex_program_ref GTP/Caustic/CauCube_PointSprite_VS
34   {
35     param_named_auto WorldView     worldview_matrix
36     param_named_auto Proj          proj_matrix
37     param_named CauSpriteSize      float 20.0
38   }
39   vertex_program_ref GTP/Caustic/CauCube_PointSprite_PS
40   {
41     param_named CausticColor float4          0.7 0.7 0.5 0.15
42   }
43   texture_unit
44   {
45     vertex_texture true         
46   }
47   texture_unit
48   {
49     texture PowerOfPhotonHitTexel.dds
50   }
51
52  }
53 }
54}
55
56material GTP/Caustic/CauCube_Triangles
57{
58 technique
59 {
60  pass
61  {
62   cull_hardware none
63   scene_blend src_alpha one
64   depth_write off
65   vertex_program_ref GTP/Caustic/CauCube_Triangles_VS
66   {
67     param_named_auto WorldView      worldview_matrix
68     param_named_auto Proj           proj_matrix
69     param_named PhotonMapResolution float 64
70   }
71   vertex_program_ref GTP/Caustic/CauCube_Triangles_PS
72   {
73     param_named CausticColor float4 0.7 0.7 0.5 1
74   }
75   texture_unit
76   {
77     vertex_texture true         
78   }
79  }
80 }
81}
Note: See TracBrowser for help on using the repository browser.