Ignore:
Timestamp:
10/26/06 15:33:57 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts
Files:
4 edited

Legend:

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

    r1671 r1683  
    4141} 
    4242 
     43vertex_program TexturedVS hlsl 
     44{ 
     45        source textured.hlsl 
     46        entry_point vs 
     47        target vs_2_0 
     48}  
     49 
     50fragment_program TexturedPS hlsl 
     51{ 
     52        source textured.hlsl 
     53        entry_point ps 
     54        target ps_3_0 
     55}  
     56 
    4357material Examples/MorningSkyBox 
    4458{ 
     
    4761                pass 
    4862                { 
    49                         lighting off 
     63                        vertex_program_ref TexturedVS 
     64                        {        
     65                                param_named_auto worldViewProj worldviewproj_matrix      
     66                        }  
     67                        fragment_program_ref TexturedPS 
     68                        {  
     69                         
     70                        } 
    5071                        depth_write off 
    5172 
    5273                        texture_unit 
    5374                        { 
    54                                 cubic_texture morning.jpg separateUV 
     75                                cubic_texture Forest.dds separateUV 
     76                                //cubic_texture morning.jpg separateUV 
    5577                                tex_address_mode clamp 
    5678                        } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools_ToneMap.compositor

    r777 r1683  
    77        texture rt0 256 256 PF_FLOAT16_RGBA         
    88        texture rt1 256 256 PF_FLOAT16_RGBA 
     9        texture rt2 128 128 PF_FLOAT16_RGBA 
     10        texture rt3 32 32 PF_FLOAT16_RGBA 
     11        texture rt4 8  8  PF_FLOAT16_RGBA 
     12        texture rt5 2  2  PF_FLOAT16_RGBA 
    913         
    1014        target scene 
    1115        { 
    12             // Render output from previous compositor (or original scene) 
    13             input previous 
     16            input previous                
    1417        } 
    1518        target luminance 
     
    4346                }  
    4447                 
     48                target rt2 
     49        { 
     50            input none 
     51            pass render_quad 
     52            { 
     53               material GameTools/GlowBlurV 
     54                input 0 rt1                          
     55            } 
     56                }  
     57                 
     58                target rt3 
     59        { 
     60            input none 
     61            pass render_quad 
     62            { 
     63               material GameTools/GlowBlurH 
     64                input 0 rt2                          
     65            } 
     66                }  
     67                 
     68                target rt4 
     69        { 
     70            input none 
     71            pass render_quad 
     72            { 
     73               material GameTools/GlowBlurV 
     74                input 0 rt3                          
     75            } 
     76                }  
     77                 
     78                target rt5 
     79                { 
     80                        input none 
     81                        only_initial on 
     82                        pass clear 
     83                        { 
     84                                                         
     85                        } 
     86                } 
     87                 
     88                target rt5 
     89        { 
     90            input none             
     91             
     92            pass render_quad 
     93            { 
     94                   clear 
     95                   { 
     96                    buffers depth 
     97                   } 
     98 
     99               material GameTools/GlowBlurHTB 
     100                input 0 rt4                          
     101            } 
     102                }  
     103                 
    45104        target_output 
    46105        { 
     
    51110                input 0 scene 
    52111                input 1 rt1 
    53                                 input 2 luminance                                
     112                                input 2 luminance 
     113                                input 3 rt5                      
    54114            } 
    55115        } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Glow.material

    r1611 r1683  
    5050                param_named_auto width viewport_width    
    5151                param_named_auto height viewport_height 
    52                 //param_named cutValue float 10.0 
    53                 param_named cutValue float 10.5 
    54                 param_named timeBlur float 0.5 
     52                param_named cutValue float 10.0 
     53                //param_named cutValue float 4.5 
     54                param_named timeBlur float 0.4 
    5555                 
    5656         } 
     
    107107                        param_named_auto width viewport_width    
    108108                param_named_auto height viewport_height  
     109                param_named Stretch float 1.5 
     110                //param_named timeBlur float 0.5 
     111         } 
     112        texture_unit 
     113                 { 
     114                    tex_address_mode mirror  
     115                        texture rockwall.tga             
     116                 } 
     117                         
     118      } 
     119   } 
     120} 
     121 
     122material GameTools/GlowBlurV 
     123{ 
     124        technique  
     125   {  
     126        pass  
     127      { 
     128                vertex_program_ref GameTools/PostProc1_VS 
     129         {        
     130         }  
     131                fragment_program_ref GameTools/GlowBlurV_PS 
     132         {  
     133                        param_named_auto width viewport_width    
     134                param_named_auto height viewport_height  
     135                param_named Stretch float 1.5 
     136                // param_named timeBlur float 0.5 
     137         } 
     138        texture_unit 
     139                 { 
     140                    tex_address_mode mirror  
     141                        texture rockwall.tga             
     142                 }                
     143      } 
     144   } 
     145} 
     146 
     147material GameTools/GlowBlurHTB 
     148{ 
     149   technique  
     150   {  
     151        pass  
     152      { 
     153        scene_blend alpha_blend 
     154                vertex_program_ref GameTools/PostProc1_VS 
     155         {        
     156         }  
     157                fragment_program_ref GameTools/GlowBlurH_PS 
     158         {  
     159                        param_named_auto width viewport_width    
     160                param_named_auto height viewport_height  
    109161                param_named Stretch float 1.2 
    110          } 
    111         texture_unit 
    112                  { 
    113                     tex_address_mode mirror  
    114                         texture rockwall.tga             
    115                  } 
    116                          
    117       } 
    118    } 
    119 } 
    120  
    121 material GameTools/GlowBlurV 
    122 { 
    123         technique  
    124    {  
    125         pass  
    126       { 
    127                 vertex_program_ref GameTools/PostProc1_VS 
    128          {        
    129          }  
    130                 fragment_program_ref GameTools/GlowBlurV_PS 
    131          {  
    132                         param_named_auto width viewport_width    
    133                 param_named_auto height viewport_height  
    134                 param_named Stretch float 1.2 
     162                 param_named timeBlur float 0.025 
    135163         } 
    136164        texture_unit 
     
    226254                        texture rockwall.tga             
    227255                 } 
    228       } 
    229    } 
    230 } 
     256                  texture_unit 
     257                 { 
     258                   // filtering none 
     259                        texture rockwall.tga             
     260                 } 
     261      } 
     262   } 
     263} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/kupola.material

    r1629 r1683  
    4444                { 
    4545                        texture falt2.tga 
     46                        //texture rnl_cross.hdr 
    4647                } 
    4748                          
     
    110111} 
    111112 
     113vertex_program KuppolafalVS hlsl 
     114{ 
     115        source kupola.hlsl 
     116        entry_point vs 
     117        target vs_2_0 
     118}  
     119 
     120fragment_program KuppolafalPS hlsl 
     121{ 
     122        source kupola.hlsl 
     123        entry_point ps 
     124        target ps_3_0 
     125}  
    112126 
    113127material kupolafal_low 
     
    117131   {  
    118132      pass  
    119       {                   
    120                  
     133      {          
     134                                 
    121135            texture_unit 
    122136                { 
    123                         texture falt2.tga 
     137                        texture falt2.tga                        
    124138                } 
    125139                 
Note: See TracChangeset for help on using the changeset viewer.