Changeset 2024


Ignore:
Timestamp:
01/23/07 08:53:32 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials
Files:
35 added
11 deleted
4 edited

Legend:

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

    r1691 r2024  
    3838  return sum; 
    3939  return tex2D(Texture, uv); 
     40} 
     41 
     42float4 CopyPS(VS_OUTPUT IN, 
     43                        uniform sampler2D Texture : register(s0), 
     44                        uniform float alpha, 
     45                        uniform float width, 
     46                        uniform float height ) : COLOR 
     47 
     48  float2 pixel = float2(1.0 / width, 1.0 / height); 
     49  float2 uv = IN.Position + pixel * 0.5; 
     50 
     51  float4 Color = tex2D(Texture, uv); 
     52  Color.a = alpha;   
     53  //Color = float4(0,0,0,1); 
     54  return Color; 
    4055} 
    4156 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/MetalTeapotNew.hlsl

    r1959 r2024  
    525525    I = readCubeMap(NormDistMap1, p); 
    526526  } 
     527<<<<<<< .mine 
     528I = max1 + 0.0000000000001 *x.x; 
     529======= 
    527530 I = max1 + 0.000000001 * x.x; 
     531>>>>>>> .r1994 
    528532  //I = readCubeMap(NormDistMap1, R)+0.00000000001*x.x;  
    529533  return I;      
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material

    r1691 r2024  
    309309} 
    310310 
     311material GameTools/BlurLightVolume 
     312{  
     313 
     314   technique  
     315   {  
     316       
     317      pass  
     318      {  
     319        depth_check off 
     320        cull_hardware none 
     321        scene_blend alpha_blend  
     322                 
     323                vertex_program_ref GameTools/BlurVS 
     324        {        
     325                      
     326            }  
     327                fragment_program_ref  GameTools/CopyPS 
     328        {  
     329            param_named_auto width viewport_width 
     330                        param_named_auto height viewport_height 
     331                        param_named float alpha 0.3      
     332        } 
     333        texture_unit 
     334        { 
     335                        filtering bilinear 
     336        } 
     337         
     338       } 
     339    } 
     340} 
     341 
    311342material GameTools/BlurCubeFace 
    312343{  
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.program

    r1691 r2024  
    1010        source GameTools_Blur.hlsl 
    1111        entry_point BlurPS 
     12        target ps_3_0 
     13}  
     14 
     15fragment_program GameTools/CopyPS hlsl 
     16{ 
     17        source GameTools_Blur.hlsl 
     18        entry_point CopyPS 
    1219        target ps_3_0 
    1320}  
     
    4148}  
    4249 
    43 vertex_program GameTools/PostProc1_VS hlsl 
    44 { 
    45         source GameTools_PostProc.hlsl 
    46         entry_point defaultVS 
    47         target vs_2_0 
    48 }  
    49  
    50 fragment_program GameTools/PostProc_Black hlsl 
    51 { 
    52         source GameTools_PostProc.hlsl 
    53         entry_point BlackPS 
    54         target ps_2_0 
    55  
    56 }  
    57  
    58 fragment_program GameTools/PostProc1_PS hlsl 
    59 { 
    60         source GameTools_PostProc.hlsl 
    61         entry_point defaultPS 
    62         target ps_2_0 
    63  
    64 }  
    65  
    66 fragment_program GameTools/GlowCut_PS hlsl 
    67 { 
    68         source GameTools_PostProc.hlsl 
    69         entry_point GlowCutPS 
    70         target ps_2_0 
    71  
    72 }  
    73  
    74 fragment_program GameTools/Luminance_PS hlsl 
    75 { 
    76         source GameTools_PostProc.hlsl 
    77         entry_point LuminancePS 
    78         target ps_2_0 
    79  
    80 }  
    81  
    82 fragment_program GameTools/GlowAdd_PS hlsl 
    83 { 
    84         source GameTools_PostProc.hlsl 
    85         entry_point GlowAddPS 
    86         target ps_2_0 
    87 }  
    88  
    89 fragment_program GameTools/ToneMap_PS hlsl 
    90 { 
    91         source GameTools_PostProc.hlsl 
    92         entry_point ToneMapPS 
    93         target ps_2_0 
    94 }  
    95  
    96 fragment_program GameTools/GlowBlurH_PS hlsl 
    97 { 
    98         source GameTools_PostProc.hlsl 
    99         entry_point GlowBlurHPS 
    100         target ps_2_0 
    101 }  
    102  
    103 fragment_program GameTools/GlowBlurV_PS hlsl 
    104 { 
    105         source GameTools_PostProc.hlsl 
    106         entry_point GlowBlurVPS 
    107         target ps_2_0 
    108 }  
    109  
    110 fragment_program GameTools/TextureCopy_PS hlsl 
    111 { 
    112         source GameTools_PostProc.hlsl 
    113         entry_point CopyPS 
    114         target ps_2_0 
    115 }  
    11650 
    11751 
     
    342276}  
    343277 
    344 vertex_program GameTools/SpriteVS hlsl 
    345 { 
    346         source GameTools_Sprite.hlsl 
    347         entry_point SpriteVS 
    348         target vs_2_0 
    349 }  
    350  
    351 fragment_program GameTools/SpritePS hlsl 
    352 { 
    353         source GameTools_Sprite.hlsl 
    354         entry_point SpritePS 
    355         target ps_2_0 
    356  
    357 }  
    358  
    359 vertex_program GameTools/SBBVS hlsl 
    360 { 
    361         source GameTools_Sprite.hlsl 
    362         entry_point SBB_SpriteVS 
    363         target vs_3_0 
    364 }  
    365  
    366 fragment_program GameTools/SBBPS hlsl 
    367 { 
    368         source GameTools_Sprite.hlsl 
    369         entry_point SBB_SpritePS 
    370         target ps_3_0 
    371  
    372 }  
     278 
    373279 
    374280vertex_program GameTools/SceneCameraDepthVS hlsl 
Note: See TracChangeset for help on using the changeset viewer.