Ignore:
Timestamp:
06/06/07 10:25:13 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
Files:
9 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 
Note: See TracChangeset for help on using the changeset viewer.