Changeset 2414 for GTP/trunk


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

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/FPSarm.material

    r2404 r2414  
    11material phong3 
    22{ 
    3         technique 
     3        technique maintechnique 
    44        { 
    5                 pass 
     5                pass mainpass 
    66                { 
    7                         ambient 1 1 1 1 
    8                         diffuse 1 1 1 1 
    9                         specular 0 0 0 2 
    10                         emissive 0 0 0 
    11  
    12                         //scene_blend alpha_blend 
    137                        depth_write on 
    14                         //depth_check off 
    158                        cull_hardware none 
    16  
    17                         texture_unit 
     9                         
     10                        vertex_program_ref GTP/Basic/ShadedTex_VS 
    1811                        { 
    19                                 texture colortex.png 
    20                                 tex_coord_set 0 
    21                                 colour_op modulate 
     12                                param_named_auto WorldViewProj worldviewproj_matrix 
     13                                param_named_auto World world_matrix 
     14                                param_named_auto WorldInv inverse_world_matrix 
     15                        } 
     16                        fragment_program_ref GTP/Basic/Shaded/TexturedTwoLights_PS 
     17                        { 
     18                                param_named_auto lightPos1 light_position 0 
     19                                param_named_auto lightDir1 light_direction 0 
     20                                param_named_auto lightColor1 light_diffuse_colour 0 
     21                                param_named_auto lightPower1 light_power 0 
     22                                 
     23                                param_named_auto lightPos2 light_position 1 
     24                                param_named_auto lightDir2 light_direction 1 
     25                                param_named_auto lightColor2 light_diffuse_colour 1 
     26                                param_named_auto lightPower2 light_power 1 
     27                        } 
     28         
     29                        texture_unit basetexture 
     30                        { 
     31                                texture colortex.png                             
    2232                        } 
    2333                } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/GTPMoriaGlow.compositor

    r2398 r2414  
    6565         pass render_quad 
    6666         { 
    67                material GTP/PostProc/Add 
     67               material GTP/Moria/GlowFinalCombine 
    6868               input 0 scene 
    6969               input 1 rt1 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/GTPMoriaPostProc.material

    r2398 r2414  
    11material GTP/Moria/PostProc/GlowCut : GTP/PostProc/GlowCut 
    22{ 
    3    technique 0 
     3   technique maintechnique 
    44   {  
    5       pass 0  
     5      pass mainpass 
    66      { 
    77        fragment_program_ref 
    88        {  
    9           param_named cutValue float 35.0 
    10           param_named timeBlur float 0.4                 
     9          param_named cutValue float 2.0 
     10          param_named timeBlur float 0.3                 
    1111        }                
     12      } 
     13   } 
     14} 
     15 
     16material GTP/Moria/GlowFinalCombine : GTP/PostProc/Combine 
     17{ 
     18   technique maintechnique 
     19   {  
     20      pass mainpass 
     21      { 
     22                 fragment_program_ref GTP/PostProc/Combine_PS 
     23         {  
     24                param_named weight1 float 1.0 
     25                param_named weight2 float 0.35 
     26                 }      
    1227      } 
    1328   } 
     
    1631material GTP/Moria/PostProc/GlowBlurH : GTP/PostProc/GlowBlurH 
    1732{ 
    18    technique 0 
     33   technique maintechnique 
    1934   {  
    20       pass 0 
     35      pass mainpass 
    2136      { 
    2237         fragment_program_ref 
    2338         {  
    24            param_named Stretch float 1.3            
     39           param_named Stretch float 1.7            
    2540         }                               
    2641      } 
     
    3045material GTP/Moria/PostProc/GlowBlurV : GTP/PostProc/GlowBlurV 
    3146{ 
    32    technique 0 
     47   technique maintechnique 
    3348   {  
    34       pass 0 
     49      pass mainpass 
    3550      { 
    3651         fragment_program_ref 
    3752         {  
    38            param_named Stretch float 1.3                
     53           param_named Stretch float 1.7                
    3954         }                        
    4055      } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaDust.hlsl

    r2392 r2414  
    8686         
    8787        //illumination 
    88         float3 L = lightCPos - IN.Q * lightCPos.w; 
     88        lightCPos.z *= -1; 
     89        float2 L = lightCPos.xy - IN.Q.xy; 
    8990        float ld = length(L); 
    9091        L = L / ld; 
    9192        float3 V = normalize(-IN.Q); 
    92         float phase = /*lightPower / (ld*ld) * */tex2D(PhaseMap, float2(symmetry, dot(L,V)) * 0.5 + 0.5).r; 
     93        float phase;// = /*lightPower / (ld*ld) * */tex2D(PhaseMap, float2(symmetry, dot(L,V)) * 0.5 + 0.5).r; 
    9394//      float phase = (dot(L, V) + 1.0) * 0.5; 
     95 
     96        float ld2 = max(0.01, ld * ld); 
     97        phase = lightPower / ld2; 
    9498        Color.rgb *= phase; 
    9599        return Color;  
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaDust.material

    r2398 r2414  
    4343                            param_named_auto farplane far_clip_distance    
    4444                            param_named_auto nearplane near_clip_distance 
    45                         param_named color float4 0.55 0.56 0.5 2.5 
     45                        param_named color float4 0.95 0.96 0.95 0.1 
    4646                        param_named symmetry float 0.1   
    4747                        param_named_auto lightCPos light_position_view_space 0 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaDust.particle

    r2376 r2414  
    22MoriaDust 
    33{ 
    4         quota   200 
     4        quota   20 
    55        material        MoriaDust 
    66        particle_width  25 
     
    2121                colour_range_end        1 1 1 0 
    2222                direction       0 1 0 
    23                 emission_rate   64.52 
     23                emission_rate   100 
    2424                position        0 0 0 
    2525                velocity_min    0.1 
    2626                velocity_max    0.3 
    27                 time_to_live    2.258 
    28                 time_to_live_min        2.258 
    29                 time_to_live_max        18.06 
     27                time_to_live_min        3 
     28                time_to_live_max        5 
    3029                duration        0 
    3130                duration_min    0 
     
    3433                repeat_delay_min        0 
    3534                repeat_delay_max        0 
    36                 width   40 
    37                 height  40 
    38                 depth   10 
     35                width   10 
     36                height  10 
     37                depth   5 
    3938        } 
    4039 
     
    4443                green1  0 
    4544                blue1   0 
    46                 alpha1  0.3 
     45                alpha1  0.5 
    4746                red2    0 
    4847                green2  0 
    4948                blue2   0 
    50                 alpha2  -0.3 
    51                 state_change    12.26 
     49                alpha2  -0.5 
     50                state_change    2 
    5251        } 
    5352} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material

    r2386 r2414  
    148148        } 
    149149} 
     150 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasicShading.hlsl

    r2409 r2414  
    5959        float cosb = max(dot(IN.wNormal.xyz, diff), 0); 
    6060         
    61         color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower1 * lightColor1; 
    62         //color.rgb += cosb / dist2 * lightPower1 * lightColor1; 
     61        //color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower1 * lightColor1; 
     62        color.rgb += cosb / dist2 * lightPower1 * lightColor1; 
    6363         
    6464        } 
     
    7575        float cosb = max(dot(IN.wNormal.xyz, diff), 0); 
    7676         
    77         color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower2 * lightColor2;    
     77        //color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower2 * lightColor2; 
     78        color.rgb += cosb / dist2 * lightPower1 * lightColor1;   
    7879        }        
    7980         
  • 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.