Ignore:
Timestamp:
02/28/07 18:18:24 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.material

    r2136 r2175  
    4040     param_named_auto WorldView     worldview_matrix 
    4141     param_named_auto Proj          projection_matrix 
    42      param_named CauSpriteSize      float 20 
     42     param_named CauSpriteSize      float 10 
    4343   }  
    4444   fragment_program_ref GTP/Caustic/CauCube_PointSprite_PS 
    4545   { 
    46      param_named CausticColor float4          0.7 0.7 0.5 0.3 
     46     param_named CausticColor float4          1 1 1 0.8 
    4747   } 
    4848   texture_unit 
     
    120120                         
    121121                 }       
    122          vertex_program_ref GTP/Basic/ShadedTex_VS 
     122         vertex_program_ref GTP/Basic/Shaded_VS 
    123123         {        
    124124            param_named_auto WorldViewProj worldviewproj_matrix  
     
    146146   } 
    147147} 
     148 
     149material GTP/Caustic/Glass_PointSprite 
     150{ 
     151   technique  
     152   {    
     153      pass  
     154      {  
     155                 IllumTechniques 
     156                 { 
     157                        RenderTechnique ColorCubeMap 
     158                        { 
     159                                update_interval         1 
     160                                update_all_face true                                                                     
     161                        } 
     162                        RenderTechnique DistanceCubeMap 
     163                        { 
     164                                update_interval         1 
     165                                update_all_face true                                                                             
     166                        } 
     167                        RenderTechnique CausticCaster 
     168                        { 
     169                                attenuation     1000 
     170                                update_interval 1 
     171                                update_all_face true 
     172                                photonmap_resolution 64 
     173                                caustic_cubemap_resolution 256 
     174                                photon_map_material     GTP/Caustic/PhotonMap_HitEnv 
     175                                caustic_map_material    GTP/Caustic/CauCube_PointSprite 
     176                                blur_caustic_cubemap false 
     177                        } 
     178                         
     179                 }       
     180         vertex_program_ref GTP/Basic/Shaded_VS 
     181         {        
     182            param_named_auto WorldViewProj worldviewproj_matrix  
     183            param_named_auto World world_matrix 
     184            param_named_auto WorldInv inverse_world_matrix 
     185         }  
     186         fragment_program_ref GTP/EnvMap/Localized_Refraction_PS 
     187         {  
     188                    param_named_auto cameraPos camera_position 
     189            param_named lastCenter float3 0 0 0 
     190            param_named sFresnel float 0.1 
     191            param_named sRefraction float 0.9 
     192             }           
     193             //Cube map for reflections and refractions  
     194             texture_unit 
     195             { 
     196             
     197             } 
     198             //Cube map of distances 
     199             texture_unit 
     200             { 
     201            
     202             } 
     203          } 
     204   } 
     205} 
Note: See TracChangeset for help on using the changeset viewer.