Changeset 2266


Ignore:
Timestamp:
03/19/07 16:53:44 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media
Files:
1 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PRMDemo.material

    r2246 r2266  
    2222        IllumTechniques 
    2323        { 
    24          //     RenderTechnique PathMap 
    25          //     { 
     24                RenderTechnique PathMap 
     25                { 
    2626             
    27           //    } 
    28         //      RenderTechnique DepthShadowReciever 
    29         //      { 
    30         //      max_light_count 2 
    31         //              vertex_program_name GTP/Basic/LightCPos_VS 
    32         //              fragment_program_name GTP/Basic/SM/Dist_VSM_PS 
    33         //              set_light_view true 
    34         //              set_light_farplane true 
    35         //              light_viewproj_param_name LightViewProj 
    36         //              light_view_param_name LightView 
    37         //              light_farplane_param_name lightFarPlane 
    38         //              world_view_proj_param_name WorldViewProj 
    39         //              world_param_name World 
    40          //     } 
     27                } 
     28                RenderTechnique DepthShadowReciever 
     29                { 
     30                max_light_count 2 
     31                        vertex_program_name GTP/Basic/LightCPos_VS 
     32                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS 
     33                        set_light_view true 
     34                        set_light_farplane true 
     35                        light_viewproj_param_name LightViewProj 
     36                        light_view_param_name LightView 
     37                        light_farplane_param_name lightFarPlane 
     38                        world_view_proj_param_name WorldViewProj 
     39                        world_param_name World 
     40                } 
    4141        } 
    4242        vertex_program_ref GTP/Basic/ShadedTex_VS 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.material

    r2188 r2266  
    166166} 
    167167 
    168 material GTP/Basic/ShadowReciever/Depth 
     168material GTP/Basic/Focusing 
     169{ 
     170 technique 
     171 { 
     172  pass 
     173  { 
     174        vertex_program_ref GTP/Basic/LightVPos_VS 
     175        {        
     176            param_named_auto    World           world_matrix 
     177            param_named_auto    WorldViewProj   worldviewproj_matrix 
     178            param_named         LightViewProj   matrix4x4         
     179        }  
     180        fragment_program_ref  GTP/Basic/LightVPos_PS 
     181        {  
     182            
     183        } 
     184  } 
     185 }               
     186} 
     187 
     188material GTP/Basic/ShadowReciever/Depth_VSM 
    169189{ 
    170190 technique 
     
    176196     { 
    177197        RenderTechnique DepthShadowReciever 
    178                 { 
    179                         max_light_count 1 
    180                         vertex_program_name GTP/Basic/LightVPos_VS 
    181                         fragment_program_name GTP/Basic/SM/Depth_VSM_PS 
    182                         set_light_view false 
    183                         set_light_farplane false 
    184                         world_view_proj_param_name WorldViewProj 
    185                         world_param_name World 
    186                         light_viewproj_param_name LightViewProj                  
    187                 }        
     198        { 
     199                max_light_count 1 
     200                vertex_program_name GTP/Basic/LightVPos_VS 
     201                fragment_program_name GTP/Basic/SM/Depth_VSM_PS 
     202                set_light_view false 
     203                set_light_farplane false 
     204                world_view_proj_param_name WorldViewProj 
     205                world_param_name World 
     206                light_viewproj_param_name LightViewProj                  
     207        }        
    188208     } 
    189209   } 
     
    191211} 
    192212 
     213material GTP/Basic/ShadowReciever/Distance_VSM 
     214{ 
     215 technique 
     216 { 
     217   pass 
     218   { 
     219     lighting off 
     220     IllumTechniques 
     221     { 
     222        RenderTechnique DepthShadowReciever 
     223        { 
     224                max_light_count 1 
     225                vertex_program_name GTP/Basic/LightCPos_VS 
     226                fragment_program_name GTP/Basic/SM/Dist_VSM_PS 
     227                world_view_proj_param_name WorldViewProj 
     228                world_param_name World 
     229                light_viewproj_param_name LightViewProj 
     230                set_light_view true 
     231                set_light_farplane true          
     232                light_view_param_name LightView 
     233                light_farplane_param_name lightFarPlane 
     234        }        
     235     } 
     236   } 
     237 } 
     238} 
     239 
    193240material GTP/Basic/ShadowReciever/ShadowAccum 
    194241{ 
     
    197244   pass 
    198245   { 
    199     lighting off 
    200      ambient 1 1 1 1 
    201         diffuse 1 1 1 1 
    202         specular 1 1 1 1 
    203         emissive 0 0 0 
    204  
     246     lighting off    
    205247     IllumTechniques 
    206248     { 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.program

    r2246 r2266  
    151151   source GTPBasic_PS.hlsl 
    152152   entry_point PlainTex3D 
     153   target ps_2_0 
     154} 
     155 
     156fragment_program GTP/Basic/LightVPos_PS hlsl 
     157{ 
     158   source GTPBasic_PS.hlsl 
     159   entry_point LightVPosPS 
    153160   target ps_2_0 
    154161} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic_PS.hlsl

    r2188 r2266  
    2323 float4 CPos : TEXCOORD0; 
    2424}; 
     25 
     26struct LightVPos_OUT 
     27{ 
     28 float4 VPos : POSITION; 
     29 float4 LightVPos : TEXCOORD0; 
     30}; 
     31 
    2532 
    2633 
     
    7178 return IN.color * tex3D(Texture, IN.texCoord.xyz); 
    7279} 
     80 
     81float4 LightVPosPS(LightVPos_OUT IN):COLOR 
     82{ 
     83 return float4(IN.LightVPos.xyz / IN.LightVPos.w, 1); 
     84} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.hlsl

    r2136 r2266  
    258258        float  dist = readDistanceCubeMap(DistanceCubeMap, dir); 
    259259         
    260         float EPSILON = 1.0; 
     260        float EPSILON = 0.00001; 
    261261 
    262262        if(mydist > dist + EPSILON) caustic = 0; 
     
    265265                         
    266266        Color = caustic; 
    267         //Color += attenuation * 0.000000000001; 
    268267        Color.a = 1; 
    269268 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.material

    r2175 r2266  
    2020   texture_unit 
    2121   { 
    22     
     22        filtering none 
    2323   } 
    2424  } 
     
    9797                        RenderTechnique ColorCubeMap 
    9898                        { 
    99                                 update_interval         1 
     99                                update_interval         0 
    100100                                update_all_face true                                                                     
    101101                        } 
    102102                        RenderTechnique DistanceCubeMap 
    103103                        { 
    104                                 update_interval         1 
     104                                update_interval         0 
    105105                                update_all_face true                                                                             
    106106                        } 
     
    141141             texture_unit 
    142142             { 
    143             
     143                filtering none 
    144144             } 
    145145          } 
     
    157157                        RenderTechnique ColorCubeMap 
    158158                        { 
    159                                 update_interval         1 
     159                                update_interval         0 
    160160                                update_all_face true                                                                     
    161161                        } 
    162162                        RenderTechnique DistanceCubeMap 
    163163                        { 
    164                                 update_interval         1 
     164                                update_interval         0 
    165165                                update_all_face true                                                                             
    166166                        } 
     
    199199             texture_unit 
    200200             { 
    201             
     201                filtering none 
    202202             } 
    203203          } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap/GTPEnvMap.hlsl

    r2175 r2266  
    88float readDistanceCubeMap(samplerCUBE dcm, float3 coord)                 
    99{ 
    10         float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r; 
     10        float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).a; 
    1111        if(dist == 0) dist = 1000; ///sky 
    1212        return dist; 
     
    9797        float3 R = reflect( V, N);       
    9898        float3 T = refract(V, N, sRefraction); 
    99                  
     99         
    100100        RR = R; TT = T;  
    101101        RR = Hit(cubePos, R, DistanceMap); 
     
    128128        RR = R;  
    129129        RR = Hit(cubePos, R, DistanceMap); 
    130         Color = readCubeMap(CubeMap, RR );       
     130        Color = readCubeMap(CubeMap, RR); 
     131        //Color = readDistanceCubeMap(DistanceMap, cubePos)/300.0; 
     132        //return Color; 
    131133         
    132134        float ctheta_in = dot(N, R); 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap/GTPEnvMap.material

    r2175 r2266  
    7474             texture_unit 
    7575             { 
    76             
     76                filtering none 
    7777             } 
    7878          } 
     
    122122             texture_unit 
    123123             { 
    124             
     124                filtering none 
    125125             } 
    126126          } 
     
    130130material GTP/EnvMap/Localized_Metal 
    131131{ 
    132    technique 
     132   technique maintechnique 
    133133   {    
    134134      pass mainpass 
     
    171171             texture_unit 
    172172             { 
    173             
     173                filtering none 
    174174             } 
    175175          } 
     
    179179material GTP/EnvMap/Gold : GTP/EnvMap/Localized_Metal 
    180180{ 
    181    technique 
     181   technique maintechnique 
    182182   {    
    183183      pass mainpass 
     
    193193material GTP/EnvMap/Silver : GTP/EnvMap/Localized_Metal 
    194194{ 
    195    technique 
    196    {    
    197       pass mainpass 
    198       { 
    199         fragment_program_ref 
    200         { 
    201           param_named F0 float3 0.97 0.95 0.9 
    202         } 
     195   technique maintechnique 
     196   {    
     197      pass mainpass 
     198      {           
     199         fragment_program_ref GTP/EnvMap/Localized_Metal_PS 
     200         {  
     201                 
     202            param_named F0 float3 0.97 0.95 0.9             
     203         }        
    203204      } 
    204205   } 
     
    207208material GTP/EnvMap/Copper : GTP/EnvMap/Localized_Metal 
    208209{ 
    209    technique 
     210   technique maintechnique 
    210211   {    
    211212      pass mainpass 
     
    221222material GTP/EnvMap/Alu : GTP/EnvMap/Localized_Metal 
    222223{ 
    223    technique 
     224   technique maintechnique 
    224225   {    
    225226      pass mainpass 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material

    r2152 r2266  
    140140} 
    141141 
    142  
    143  
    144 material GameTools/UVShader 
    145 {  
    146    technique  
    147    {  
    148         pass  
    149       {  
    150                 vertex_program_ref GameTools/UV_VS 
    151          {        
    152             param_named_auto worldViewProj worldviewproj_matrix 
    153          }  
    154                 fragment_program_ref GameTools/UV_PS 
    155          {  
    156                         param_named_auto ID custom 0 
    157          } 
    158          
    159  
    160        } 
    161     } 
    162 } 
    163  
    164 material GameTools/DistanceShader 
    165 {  
    166  
    167    technique  
    168    {  
    169         pass  
    170       {  
    171          vertex_program_ref GameTools/DistanceVS 
    172          {        
    173             param_named_auto worldView worldview_matrix 
    174             param_named_auto worldViewProj worldviewproj_matrix 
    175          }  
    176          fragment_program_ref  GameTools/DistancePS 
    177          {  
    178                   
    179          } 
    180  
    181        } 
    182     } 
    183 } 
    184  
    185 material GameTools/SceneCameraDepthShader 
    186 {  
    187  
    188    technique  
    189    {  
    190       scene_blend none 
    191  
    192       pass  
    193       {  
    194          vertex_program_ref GameTools/SceneCameraDepthVS 
    195          {        
    196             param_named_auto worldView worldview_matrix 
    197             param_named_auto worldViewProj worldviewproj_matrix 
    198             param_named_auto farplane far_clip_distance   
    199          }  
    200          fragment_program_ref  GameTools/SceneDepthPS 
    201          {  
    202             
    203          } 
    204  
    205        } 
    206     } 
    207 } 
    208  
    209 material GameTools/FocusingShader 
    210 {  
    211  
    212    technique  
    213    {  
    214       scene_blend none 
    215  
    216       pass  
    217       {  
    218          vertex_program_ref GameTools/FocusingVS 
    219          {        
    220                         param_named_auto world          world_matrix 
    221             param_named_auto worldViewProj worldviewproj_matrix 
    222                         param_named lightTransform matrix4x4      
    223          }  
    224          fragment_program_ref  GameTools/FocusingPS 
    225          {  
    226             
    227          } 
    228  
    229        } 
    230     } 
    231 } 
    232  
    233 material GameTools/ShadowMapDepth 
    234 {  
    235  
    236    technique  
    237    {  
    238       scene_blend none 
    239  
    240       pass  
    241       {  
    242                 cull_hardware anticlockwise 
    243                 //cull_hardware none 
    244                  
    245                 vertex_program_ref GameTools/ShadowMap/DepthVS 
    246         {        
    247           param_named_auto worldViewProj worldviewproj_matrix             
    248             }  
    249                 fragment_program_ref  GameTools/ShadowMap/DepthPS 
    250         {  
    251                          
    252         } 
    253          
    254        } 
    255     } 
    256 } 
    257  
    258 material GameTools/ShadowMapDistance 
    259 {  
    260  
    261    technique  
    262    {  
    263        
    264       pass  
    265       {  
    266         scene_blend none 
    267  
    268         cull_hardware anticlockwise 
    269         //cull_hardware none 
    270         //cull_software none 
    271         //cull_hardware clockwise 
    272                  
    273         vertex_program_ref GameTools/ShadowMap/DistVS 
    274         {        
    275           param_named_auto worldViewProj worldviewproj_matrix 
    276           param_named_auto worldView worldview_matrix           
    277         }  
    278         fragment_program_ref  GameTools/ShadowMap/DistPS 
    279         {  
    280           param_named_auto farPlane far_clip_distance 
    281         } 
    282          
    283        } 
    284     } 
    285 } 
    286  
    287  
    288142material GameTools/Blur 
    289143{  
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/kupola.material

    r2054 r2266  
    11 
    22 
    3 material kupolalambert2 
     3material kupolalambert2_original 
    44{  
    55 
     
    88      pass  
    99      {  
     10                 
    1011                IllumTechniques 
    1112                { 
    12                          
     13                                 
    1314                        RenderTechnique CausticReciever 
    1415                        { 
    15                                 max_caster_count        10 
     16                                max_caster_count        0 
    1617                        } 
    1718                        //RenderTechnique DepthShadowReciever 
     
    2021                        //} 
    2122                } 
    22                  
     23                         
    2324                scene_blend none 
    2425                scene_blend_op add 
    2526                scene_blend_op_alpha add 
    2627                scene_blend_alpha none 
    27                   
     28                         
    2829                lighting off             
    29  
     30         
    3031                vertex_program_ref GameTools/CausticSoftShadowVS 
    3132                {        
    32          //param_named_auto world_IT inverse_transpose_world_matrix   
    33                  param_named_auto worldViewProj worldviewproj_matrix 
    34                  param_named_auto world world_matrix  
     33                        param_named_auto worldViewProj worldviewproj_matrix 
     34                        param_named_auto world world_matrix  
     35                        //param_named_auto world_IT inverse_transpose_world_matrix  
    3536                }  
    3637                fragment_program_ref GameTools/CausticSoftShadowPS 
    3738                {  
    38                   param_named_auto world_IT inverse_transpose_world_matrix   
    39                   param_named_auto cameraPos camera_position 
    40                   param_named_auto lightPosition light_position 0  
     39                        param_named_auto world_IT inverse_transpose_world_matrix   
     40                        param_named_auto cameraPos camera_position 
     41                        param_named_auto lightPosition light_position 0  
    4142                }  
    4243                 
    43             texture_unit 
    44                 { 
    45                         texture falt2.tga 
    46                         //texture rnl_cross.hdr 
     44                texture_unit 
     45                { 
     46                        texture falt2.tga                        
    4747                } 
    4848                          
     
    5656 
    5757 
    58 material kupolalambert5 
     58material kupolalambert5_original 
    5959{ 
    6060        technique 
     
    6767                                RenderTechnique CausticReciever 
    6868                                { 
    69                                         max_caster_count        10 
     69                                        max_caster_count        1 
    7070                                } 
    7171                                //RenderTechnique DepthShadowReciever 
     
    159159} 
    160160 
     161 
     162material kupolalambert2 
     163{  
     164 
     165   technique  
     166   {  
     167      pass  
     168      {          
     169                IllumTechniques 
     170                { 
     171                 
     172                        RenderTechnique CausticReciever 
     173                        { 
     174                                max_caster_count        1 
     175                        } 
     176                } 
     177                                 
     178                texture_unit 
     179                { 
     180                        texture falt2.tga                        
     181                } 
     182                 
     183        } 
     184  } 
     185} 
     186 
     187 
     188material kupolalambert5 
     189{ 
     190        technique 
     191        { 
     192                 
     193                pass 
     194                { 
     195                        IllumTechniques 
     196                        { 
     197                 
     198                                RenderTechnique CausticReciever 
     199                                { 
     200                                        max_caster_count        1 
     201                                } 
     202                        }                                                
     203                        texture_unit 
     204                        { 
     205                                texture talaj2.tga 
     206                        }                
     207 
     208                } 
     209        } 
     210} 
     211 
Note: See TracChangeset for help on using the changeset viewer.