Ignore:
Timestamp:
06/06/07 10:25:13 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPPostProc.hlsl

    r2398 r2414  
    4848   IN.texCoord += float2(0.5/width, 0.5/height); 
    4949   return tex2D(Texture1,IN.texCoord ) + tex2D(Texture2,IN.texCoord ); 
     50} 
     51 
     52float4 Combine_PS(VS_OUT IN, 
     53                uniform float width, 
     54                uniform float height, 
     55                uniform float weight1, 
     56                uniform float weight2, 
     57                uniform sampler2D Texture1: register(s0), 
     58                uniform sampler2D Texture2: register(s1) 
     59                 ):COLOR 
     60{        
     61   IN.texCoord += float2(0.5/width, 0.5/height); 
     62   return tex2D(Texture1,IN.texCoord ) * weight1 + tex2D(Texture2,IN.texCoord ) * weight2; 
    5063} 
    5164 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPPostProc.material

    r2398 r2414  
    9595} 
    9696 
     97material GTP/PostProc/Combine 
     98{ 
     99   technique maintechnique 
     100   {  
     101      pass mainpass 
     102      { 
     103         vertex_program_ref GTP/PostProc/PostProc_VS 
     104         { 
     105        
     106         }  
     107         fragment_program_ref GTP/PostProc/Combine_PS 
     108         {  
     109             param_named_auto width viewport_width       
     110             param_named_auto height viewport_height  
     111             param_named weight1 float 1.0 
     112             param_named weight2 float 1.0 
     113         } 
     114         texture_unit 
     115         { 
     116           // filtering none       
     117         } 
     118         texture_unit 
     119         { 
     120           // filtering none     
     121         } 
     122      } 
     123   } 
     124} 
     125 
    97126material GTP/PostProc/Luminance 
    98127{ 
     
    122151material GTP/PostProc/GlowCut 
    123152{ 
    124    technique  
    125    {  
    126       pass  
     153   technique maintechnique 
     154   {  
     155      pass mainpass 
    127156      { 
    128157        vertex_program_ref GTP/PostProc/PostProc_VS 
     
    133162                param_named_auto width viewport_width    
    134163                param_named_auto height viewport_height 
    135                 param_named cutValue float 35.0 
     164                param_named cutValue float 35 
    136165                //param_named cutValue float 4.5 
    137166                param_named timeBlur float 0.4           
     
    151180material GTP/PostProc/GlowBlurH 
    152181{ 
    153    technique  
    154    {  
    155       pass  
     182   technique maintechnique 
     183   {  
     184      pass mainpass 
    156185      { 
    157186         vertex_program_ref GTP/PostProc/PostProc_VS 
     
    176205material GTP/PostProc/GlowBlurV 
    177206{ 
    178    technique  
    179    {  
    180       pass  
     207   technique maintechnique 
     208   {  
     209      pass mainpass 
    181210      { 
    182211         vertex_program_ref GTP/PostProc/PostProc_VS 
     
    216245          param_named_auto height viewport_height  
    217246          param_named Stretch float 1.2 
    218           param_named_auto timeBlur frame_time 0.2 
     247          param_named_auto timeBlur frame_time 0.6 
    219248          //param_named timeBlur float 1 
    220249        } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPPostProc.program

    r2398 r2414  
    3131        source GTPPostProc.hlsl 
    3232        entry_point Add_PS 
     33        target ps_2_0 
     34}  
     35 
     36fragment_program GTP/PostProc/Combine_PS hlsl 
     37{ 
     38        source GTPPostProc.hlsl 
     39        entry_point Combine_PS 
    3340        target ps_2_0 
    3441}  
Note: See TracChangeset for help on using the changeset viewer.