Ignore:
Timestamp:
09/21/06 08:35:22 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts
Files:
3 edited

Legend:

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

    r1336 r1424  
    1111                        //scene_blend_op_alpha add 
    1212                        //scene_blend_alpha add 
     13                        depth_check off 
    1314                        depth_write off 
    1415 
    15                         ambient 1 0 0 1 
    16                         diffuse 1 0 0 1 
    1716                        texture_unit 
    1817                        { 
     
    212211    } 
    213212} 
     213 
     214vertex_program PhaseVS hlsl 
     215{ 
     216        source GameTools_Phase.hlsl 
     217        entry_point PhaseVS 
     218        target vs_2_0 
     219}  
     220 
     221fragment_program Phase_HenyeyGreenSteinPS hlsl 
     222{ 
     223        source GameTools_Phase.hlsl 
     224        entry_point HenyeyGreensteinPS 
     225        target ps_2_0 
     226}  
     227 
     228material Phase_HenyeyGreenStein 
     229{  
     230 
     231   technique  
     232   {  
     233       
     234      pass  
     235      {                  
     236                vertex_program_ref PhaseVS 
     237                {        
     238                      
     239                }  
     240                fragment_program_ref  Phase_HenyeyGreenSteinPS 
     241                {  
     242                                 
     243                }                
     244         
     245       } 
     246    } 
     247} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools_HPS.material

    r1355 r1424  
    7575                                        particle_script GameTools/Little 
    7676                                        perspective false 
    77                                 }                        
     77                                        vparam_radius baseRadius                                                                         
     78                                } 
     79                                                                 
    7880                        } 
    7981                                 
     
    8284                                param_named_auto worldViewProj worldviewproj_matrix  
    8385                                param_named_auto worldView worldview_matrix 
    84                                 param_named_auto Proj projection_matrix      
     86                                param_named_auto Proj projection_matrix                                      
    8587                        }  
    8688                        fragment_program_ref  HPS_Smoke_L_PS 
     
    9294                        scene_blend alpha_blend 
    9395                         
    94                         texture_unit 
    95                         { 
    96                                  
    97                         } 
     96                        //impostor texture 
     97                        texture_unit 
     98                        { 
     99                                 
     100                        } 
     101                         
    98102 
    99103                } 
     
    101105} 
    102106 
    103  
    104  
     107vertex_program HPS_Smoke_L_Depth_VS hlsl 
     108{ 
     109        source GameTools_HPS_Smoke_L_Depth.hlsl 
     110        entry_point HPS_Smoke_L_Depth_Illum_VS 
     111        target vs_3_0 
     112}  
     113 
     114fragment_program HPS_Smoke_L_Depth_PS hlsl 
     115{ 
     116        source GameTools_HPS_Smoke_L_Depth.hlsl 
     117        entry_point HPS_Smoke_L_Depth_Illum_PS 
     118        target ps_3_0 
     119}  
     120 
     121 
     122 
     123material HPS_SMOKE_L_Depth 
     124{ 
     125        technique 
     126        { 
     127                pass 
     128                {        
     129                        IllumTechniques 
     130                        { 
     131                                RenderTechnique HPS 
     132                                { 
     133                                        particle_script GameTools/Little 
     134                                        perspective false 
     135                                        vparam_radius baseRadius 
     136                                        update_interval 1                                
     137                                } 
     138                                RenderTechnique SphericalBillboard 
     139                                { 
     140                                        texture_unit_id         1                                        
     141                                }                        
     142                                RenderTechnique IllumVolume 
     143                                { 
     144                                        update_interval 1 
     145                                        //depths 4 
     146                                        resolution 128 
     147                                }        
     148                        } 
     149                                 
     150                        vertex_program_ref HPS_Smoke_L_Depth_VS 
     151                        {        
     152                                param_named_auto worldViewProj worldviewproj_matrix  
     153                                param_named_auto worldView worldview_matrix 
     154                                param_named_auto worldViewInv inverse_worldview_matrix 
     155                                param_named_auto Proj projection_matrix  
     156                                param_named_auto width viewport_width    
     157                                param_named_auto height viewport_height                                                              
     158                        }  
     159                        fragment_program_ref  HPS_Smoke_L_Depth_PS 
     160                        {  
     161                                param_named_auto Proj projection_matrix 
     162                                param_named_auto farplane far_clip_distance 
     163                                 
     164                                 
     165                        } 
     166                         
     167                        depth_check off                  
     168                        depth_write off 
     169                        scene_blend alpha_blend 
     170                         
     171                        //impostor texture 
     172                        texture_unit 
     173                        { 
     174                                //filtering none 
     175                        } 
     176                        //scene depth texture 
     177                        texture_unit 
     178                        { 
     179                                filtering none 
     180                        } 
     181                        //lightVolume 
     182                        texture_unit 
     183                        { 
     184                                //filtering none 
     185                        } 
     186 
     187                } 
     188        } 
     189} 
     190 
     191vertex_program Smoke_IllumVolume_VS hlsl 
     192{ 
     193        source GameTools_Smoke_IllumVolume.hlsl 
     194        entry_point SmokeIllumVolumeVS 
     195        target vs_3_0 
     196}  
     197 
     198fragment_program HPS_IllumVolume_PS hlsl 
     199{ 
     200        source GameTools_Smoke_IllumVolume.hlsl 
     201        entry_point SmokeIllumVolumePS 
     202        target ps_3_0 
     203}  
     204 
     205material Smoke_IllumVolume 
     206{  
     207 
     208   technique  
     209   {  
     210        pass  
     211      {  
     212                 
     213                cull_hardware none 
     214                cull_software none 
     215                lighting off 
     216                scene_blend zero one_minus_src_colour 
     217                depth_write off 
     218 
     219                vertex_program_ref Smoke_IllumVolume_VS 
     220                        {        
     221                                param_named_auto worldViewProj worldviewproj_matrix  
     222                                param_named_auto worldView worldview_matrix 
     223                                param_named_auto Proj projection_matrix      
     224                        }  
     225                fragment_program_ref  HPS_IllumVolume_PS 
     226                        {  
     227                          
     228                        } 
     229 
     230                texture_unit 
     231                { 
     232                texture pamacs.dds 
     233                } 
     234 
     235       } 
     236    } 
     237} 
     238 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Particles.material

    r1336 r1424  
    109109                { 
    110110                        texture  
    111                 } 
    112                           
    113                  
     111                }                
    114112        } 
    115113  } 
    116114} 
     115 
Note: See TracChangeset for help on using the changeset viewer.