Changeset 1094


Ignore:
Timestamp:
07/07/06 08:53:01 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials
Files:
5 added
5 edited

Legend:

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

    r916 r1094  
    1010        float2 center           : TEXCOORD2; 
    1111        float4 position         : TEXCOORD3; 
     12        float pSize                     : PSIZE; 
     13        float dist                      : TEXCOORD4; 
    1214}; 
    1315 
     
    2426      
    2527   float radius = CauSpriteSize; 
    26    float2 offset = 2.0 * texCoord.zw * radius; 
    27     
     28   OUT.pSize = radius; 
    2829   float4 cPosition;   
    2930 
    30    float4 pos = tex2Dlod(PhotonHitMap, float4(position.x, 1.0 - position.y,0,0)).rgba; 
     31  float4 pos = tex2Dlod(PhotonHitMap, float4(position.x, 1.0 - position.y,0,0)).rgba; 
     32//      float4 pos = float4(0,0,-0.5,1); 
    3133   if(pos.a == 0)//no photon hit 
    3234   { 
     
    4042                cPosition = mul(worldView, wPosition); 
    4143                OUT.center = cPosition.xy; 
    42                 cPosition.xy += offset;                          
    4344                OUT.position = cPosition;        
    44                 OUT.hPosition = mul(Proj, cPosition); 
    45                  
    46                 /*  
    47                 //rotate to camera 
    48                 cPosition = mul(worldView, wPosition); 
    49                                  
    50                 float3 C = cPosition.xyz; 
    51                 float3 right = cross(C, float3(0,1,0)); 
    52                 float3 up = cross(right, C); 
    53                  
    54                 float3 cOffset = offset.x * right + offset.y * up; 
    55                 cPosition.xy += float2(-0.5/resolution, -0.5/resolution); 
    56                 OUT.center = cPosition.xy; 
    57                 cPosition.xyz += cOffset;                                
    58                 OUT.position = cPosition;        
    59                 OUT.hPosition = mul(Proj, cPosition); 
    60                 */ 
     45                OUT.hPosition = mul(Proj, cPosition);            
    6146         }       
    6247   
    63    OUT.r.x = abs(offset.x); 
     48   OUT.r.x = radius; 
    6449   OUT.r.y = radius; 
    6550   OUT.texCoord = texCoord; 
    66    OUT.color = 1;        
     51   OUT.color = 1;  
     52   OUT.color = float4(pos); 
     53   OUT.dist = length(pos.xyz); 
    6754    
    6855   return OUT; 
     
    7158 
    7259float4 CauPS(VS_OUT IN, 
     60                uniform float3 color, 
    7361                uniform sampler2D intensityTex : register(s1) 
    7462                 ):COLOR 
    7563{ 
    7664 
    77   float2 texcoord = (IN.center - IN.position.xy) / IN.r.x; 
    78   texcoord = (texcoord + 1.0) * 0.5; 
    79   float intens = tex2D(intensityTex, texcoord).r; 
    80   IN.color = intens * CauSpriteIntens; 
    81   
    82   return IN.color; 
    83    
     65 // float2 texcoord = (IN.center - IN.position.xy) / IN.r.x; 
     66 // texcoord = (texcoord + 1.0) * 0.5; 
     67  IN.color.rgb = color; 
     68  float intens = tex2D(intensityTex, IN.texCoord).r; 
     69  IN.color.a = intens * CauSpriteIntens; 
     70  return IN.color;   
    8471} 
    8572 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_Caustic.hlsl

    r1085 r1094  
    4040        float dist = readDistanceCubeMap(distanceCube, dir); 
    4141         
    42         float EPSILON = 0.1; 
     42        float EPSILON = 1.0; 
    4343 
    44         //if(mydist > dist + EPSILON) caustic = 0; 
    45          caustic *= max(attenuation - mydist, 0) / attenuation; 
    46                  
     44        if(mydist > dist + EPSILON) caustic = 0; 
     45        //caustic.rgb *= max(attenuation - mydist, 0.0) / attenuation; 
     46                         
    4747        Color = caustic; 
    48                  
     48        Color += attenuation; 
     49        Color.a = 1;     
    4950        return Color; 
    5051} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_Localized_EnvMap.hlsl

    r1060 r1094  
    2424{ 
    2525        float4 color = texCUBE( cm, float3(coord.xy, - coord.z) ); 
     26        color.a = 1; 
    2627        return color; 
    2728} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material

    r1081 r1094  
    1  
    2  
    3 material GameTools/HPS 
    4 {  
    5  
    6    technique  
    7    {  
    8       pass  
    9       {  
    10                 IllumTechniques 
    11                 { 
    12                         RenderTechnique HPS 
    13                         { 
    14                                 particle_script GameTools/Little 
    15                         }                        
    16                 } 
    17                  
    18                 scene_blend add 
    19                  
    20                 lighting off             
    21                 depth_check off 
    22                  
    23             texture_unit 
    24                 { 
    25                         texture  
    26                 } 
    27                           
    28                  
    29         } 
    30   } 
    31 } 
    32  
    33  
    341material Flare 
    352{ 
     
    10370} 
    10471 
    105 material GameTools/PostProcBlack 
    106 { 
    107         technique  
    108    {  
    109         pass  
    110       { 
    111                 vertex_program_ref GameTools/PostProc1_VS 
    112          {        
    113          }  
    114                 fragment_program_ref GameTools/PostProc_Black 
    115          {  
    116          
    117          } 
    118        } 
    119     } 
    120 } 
    121 material GameTools/PostProc1 
    122 { 
    123         technique  
    124    {  
    125         pass  
    126       { 
    127                 vertex_program_ref GameTools/PostProc1_VS 
    128          {        
    129          }  
    130                 fragment_program_ref GameTools/PostProc1_PS 
    131          {  
    132          
    133          } 
    134         texture_unit 
    135                  { 
    136                    // filtering none 
    137                         texture rockwall.tga             
    138                  } 
    139       } 
    140    } 
    141 } 
    14272 
    143 material GameTools/GlowCut 
    144 { 
    145         technique  
    146    {  
    147         pass  
    148       { 
    149                 vertex_program_ref GameTools/PostProc1_VS 
    150          {        
    151          }  
    152                 fragment_program_ref GameTools/GlowCut_PS 
    153          {  
    154                         param_named_auto width viewport_width    
    155                 param_named_auto height viewport_height  
    156                  
    157          } 
    158         texture_unit 
    159                  { 
    160                     //filtering none 
    161                         texture rockwall.tga             
    162                  } 
    163                  texture_unit 
    164                  { 
    165                     //filtering none 
    166                         texture rockwall.tga             
    167                  }       
    168       } 
    169    } 
    170 } 
    171  
    172 material GameTools/Luminance 
    173 { 
    174         technique  
    175    {  
    176         pass  
    177       { 
    178                 vertex_program_ref GameTools/PostProc1_VS 
    179          {        
    180          }  
    181                 fragment_program_ref GameTools/Luminance_PS 
    182          {  
    183                         param_named_auto width viewport_width    
    184                 param_named_auto height viewport_height  
    185                  
    186          } 
    187         texture_unit 
    188                  { 
    189                     //filtering none 
    190                         texture rockwall.tga             
    191                  }                
    192                  
    193       } 
    194    } 
    195 } 
    196  
    197  
    198  
    199 material GameTools/GlowBlurH 
    200 { 
    201         technique  
    202    {  
    203         pass  
    204       { 
    205                 vertex_program_ref GameTools/PostProc1_VS 
    206          {        
    207          }  
    208                 fragment_program_ref GameTools/GlowBlurH_PS 
    209          {  
    210                         param_named_auto width viewport_width    
    211                 param_named_auto height viewport_height  
    212                 param_named Stretch float 3.2 
    213          } 
    214         texture_unit 
    215                  { 
    216                     tex_address_mode mirror  
    217                         texture rockwall.tga             
    218                  } 
    219                          
    220       } 
    221    } 
    222 } 
    223  
    224 material GameTools/GlowBlurV 
    225 { 
    226         technique  
    227    {  
    228         pass  
    229       { 
    230                 vertex_program_ref GameTools/PostProc1_VS 
    231          {        
    232          }  
    233                 fragment_program_ref GameTools/GlowBlurV_PS 
    234          {  
    235                         param_named_auto width viewport_width    
    236                 param_named_auto height viewport_height  
    237                 param_named Stretch float 3.2 
    238          } 
    239         texture_unit 
    240                  { 
    241                     tex_address_mode mirror  
    242                         texture rockwall.tga             
    243                  }                
    244       } 
    245    } 
    246 } 
    247  
    248 material GameTools/TextureCopy 
    249 { 
    250         technique  
    251    {  
    252         pass  
    253       { 
    254                 vertex_program_ref GameTools/PostProc1_VS 
    255          {        
    256          }  
    257                 fragment_program_ref GameTools/TextureCopy_PS 
    258          {  
    259                         param_named_auto width viewport_width    
    260                 param_named_auto height viewport_height  
    261                  
    262          } 
    263         texture_unit 
    264                  { 
    265                    // filtering none 
    266                         texture rockwall.tga             
    267                  }                
    268       } 
    269    } 
    270 } 
    271      
    272 material GameTools/GlowAdd 
    273 { 
    274         technique  
    275    {  
    276         pass  
    277       { 
    278                 vertex_program_ref GameTools/PostProc1_VS 
    279          {        
    280          }  
    281                 fragment_program_ref GameTools/GlowAdd_PS 
    282          {  
    283                         param_named_auto width viewport_width    
    284                 param_named_auto height viewport_height  
    285                  
    286          } 
    287         texture_unit 
    288                  { 
    289                    // filtering none 
    290                         texture rockwall.tga             
    291                  } 
    292                   texture_unit 
    293                  { 
    294                    // filtering none 
    295                         texture rockwall.tga             
    296                  } 
    297       } 
    298    } 
    299 } 
    300  
    301 material GameTools/ToneMap 
    302 { 
    303         technique  
    304    {  
    305         pass  
    306       { 
    307                 vertex_program_ref GameTools/PostProc1_VS 
    308          {        
    309          }  
    310                 fragment_program_ref GameTools/ToneMap_PS 
    311          {  
    312                         param_named_auto width viewport_width    
    313                 param_named_auto height viewport_height  
    314                 param_named Gain float 0.5 
    315          } 
    316         texture_unit 
    317                  { 
    318                    // filtering none 
    319                         texture rockwall.tga             
    320                  } 
    321                   texture_unit 
    322                  { 
    323                    // filtering none 
    324                         texture rockwall.tga             
    325                  } 
    326                   texture_unit 
    327                  { 
    328                    // filtering none 
    329                         texture rockwall.tga             
    330                  } 
    331       } 
    332    } 
    333 } 
    33473 
    33574material GameTools/UVShader 
     
    35392} 
    35493 
    355  
    356 material GameTools/Caustic/Default  
    357 {  
    358  
    359    technique  
    360    {  
    361        pass  
    362        {  
    363                 lighting off             
    364  
    365                 vertex_program_ref GameTools/Caustic/DefaultVS 
    366                 {        
    367          param_named_auto worldViewProj worldviewproj_matrix 
    368                  param_named_auto world world_matrix  
    369                 }  
    370                 fragment_program_ref GameTools/Caustic/DefaultPS 
    371                 {  
    372                  param_named cubeMapCameraPosition float3 0 0 0   
    373                 }  
    374                  
    375             texture_unit 
    376                 { 
    377                         filtering none                           
    378                 } 
    379                           
    380                 texture_unit 
    381                 { 
    382                         //filtering linear linear linear                         
    383                 } 
    384         } 
    385     } 
    386 } 
    387  
    388 material GameTools/SoftShadowReciever/Default  
    389 {  
    390  
    391    technique  
    392    {  
    393        pass  
    394        {  
    395                 lighting off             
    396  
    397                 vertex_program_ref GameTools/SoftShadow/VertexPrograms/DefaultVS 
    398                 {        
    399          param_named_auto worldViewProj worldviewproj_matrix 
    400                  param_named_auto world world_matrix  
    401                 }  
    402                 fragment_program_ref GameTools/SoftShadow/FragmentPrograms/DefaultPS 
    403                 {  
    404                  param_named cubeMapCameraPosition float3 0 0 0   
    405                 }  
    406                  
    407             texture_unit 
    408                 { 
    409                         texture rockwall.tga 
    410                         //texture cubbe.jpg 
    411                          
    412                 } 
    413                           
    414                 texture_unit 
    415                 { 
    416                         //filtering linear linear linear 
    417                         cubic_texture cubemap.jpg combinedUVW 
    418                         env_map cubic_reflection                 
    419                 } 
    420         } 
    421     } 
    422 } 
    423  
    424 material GameTools/SoftShadowReciever/Default2  
    425 {  
    426  
    427    technique  
    428    {  
    429        pass  
    430        {  
    431                 lighting off             
    432  
    433                 vertex_program_ref GameTools/SoftShadow/VertexPrograms/DefaultVS 
    434                 {        
    435          param_named_auto world_IT inverse_transpose_world_matrix   
    436                 param_named_auto worldViewProj worldviewproj_matrix 
    437                  param_named_auto world world_matrix  
    438                 }  
    439                 fragment_program_ref GameTools/SoftShadow/FragmentPrograms/Default2PS 
    440                 {  
    441                  param_named cubeMapCameraPosition float3 0 0 0   
    442                  param_named_auto cameraPos camera_position 
    443                  param_named_auto lightPosition light_position 0  
    444                 }                
    445              
    446                 texture_unit 
    447                 { 
    448                         //filtering linear linear linear 
    449                         cubic_texture cubemap.jpg combinedUVW 
    450                         env_map cubic_reflection                 
    451                 } 
    452         } 
    453     } 
    454 } 
    455  
    456 material GameTools/CausticSoftShadowReciever 
    457 {  
    458  
    459    technique  
    460    {  
    461       pass  
    462       {  
    463                 lighting off             
    464  
    465                 vertex_program_ref GameTools/CausticSoftShadowVS 
    466                 {        
    467          param_named_auto world_IT worldviewproj_matrix   
    468                  param_named_auto worldViewProj worldviewproj_matrix 
    469                  param_named_auto world world_matrix  
    470                 }  
    471                 fragment_program_ref GameTools/CausticSoftShadowPS 
    472                 {  
    473                  //param_named_auto world_IT inverse_worldview_matrix   
    474                  param_named cubeMapCameraPosition float3 0 0 0   
    475                 }  
    476                  
    477             texture_unit 
    478                 { 
    479                         //texture rockwall.tga 
    480                         texture cubbe.jpg                        
    481                 } 
    482                           
    483                 //texture_unit //caustic cubemap 
    484                 //{ 
    485                 //      //filtering linear linear linear 
    486                 //      cubic_texture cubemap.jpg combinedUVW                    
    487                 //} 
    488                  
    489                 //texture_unit  //softshadow cubemap 
    490                 //{ 
    491                 //      //filtering linear linear linear 
    492                 //      cubic_texture cubemap.jpg combinedUVW 
    493                 //} 
    494                  
    495                 texture_unit/bump 
    496                 { 
    497                         texture falnormal.dds 
    498                 } 
    499         } 
    500   } 
    501 } 
    502  
    503  
    504 material GameTools/CubeMap/Default  
    505 {  
    506  
    507    technique  
    508    {  
    509        pass  
    510        {  
    511                 lighting off 
    512          
    513  
    514  
    515                 vertex_program_ref GameTools/CubeMap/VertexPrograms/DefaultVS 
    516                  {        
    517                      param_named_auto worldViewProj worldviewproj_matrix 
    518                     param_named_auto world world_matrix  
    519                  }  
    520                  fragment_program_ref GameTools/CubeMap/FragmentPrograms/DefaultPS 
    521                  {  
    522                         param_named_auto cameraPos camera_position        
    523                  }  
    524                          
    525                 //Cube map for reflections and refractions       
    526                 texture_unit 
    527                 { 
    528                         cubic_texture cubemap.jpg combinedUVW    
    529                         //env_map cubic_reflection       
    530                 } 
    531           
    532          
    533           } 
    534     } 
    535 } 
    536  
    537  
    538  
    539 material GameTools/CubeMap/Reduce 
    540 {  
    541  
    542    technique  
    543    {  
    544        pass  
    545        {  
    546        //depth_check off 
    547            lighting off 
    548          
    549             vertex_program_ref GameTools/CubeMap/VertexPrograms/ReduceVS 
    550          {        
    551            // param_named_auto worldViewProj worldviewproj_matrix 
    552                // param_named_auto world world_matrix  
    553          }  
    554          fragment_program_ref GameTools/CubeMap/FragmentPrograms/ReducePS 
    555          {  
    556                 //param_named_auto cameraPos camera_position      
    557          param_named nFace int 0 
    558          param_named CUBEMAP_SIZE int 256 
    559          //param_named RATE int 2 
    560           
    561         }  
    562                  
    563          //Cube map for reflections and refractions      
    564          texture_unit 
    565          { 
    566            filtering point point point 
    567            cubic_texture cubemap.jpg combinedUVW 
    568            tex_address_mode clamp 
    569           // env_map cubic_reflection 
    570            colour_op modulate 
    571          } 
    572  
    573  
    574         } 
    575     } 
    576 } 
    577  
    578  
    579  
    580 material GameTools/CubeMap/Localized  
    581 {  
    582  
    583    technique  
    584    {  
    585     
    586       pass  
    587       {  
    588                 IllumTechniques 
    589                 { 
    590                         RenderTechnique ColorCubeMap 
    591                         { 
    592                                 update_interval         0 
    593                                 distance_calc true 3.5                                   
    594                         } 
    595                         RenderTechnique DistanceCubeMap 
    596                         { 
    597                                 update_interval         0 
    598                                 distance_calc true 3.5                                           
    599                         } 
    600                         RenderTechnique CausticCaster 
    601                         { 
    602                                                                          
    603                         } 
    604                          
    605                  } 
    606        
    607        
    608          vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 
    609      {        
    610             param_named_auto worldViewProj worldviewproj_matrix  
    611             param_named_auto world world_matrix  
    612      }  
    613          fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedPS 
    614      {  
    615                 param_named_auto cameraPos camera_position 
    616                 param_named_auto lightPosition light_position 0 
    617          }  
    618                  
    619          //Cube map for reflections and refractions      
    620          texture_unit 
    621          { 
    622            cubic_texture cubemap.jpg combinedUVW 
    623            tex_address_mode clamp 
    624            colour_op replace 
    625          } 
    626  
    627         //Cube map of distances 
    628          texture_unit 
    629          { 
    630            cubic_texture cubemap.jpg combinedUVW 
    631            tex_address_mode clamp 
    632            colour_op replace 
    633          } 
    634  
    635  
    636         } 
    637     } 
    638 } 
    639  
    640  
    641 material GameTools/Localized_NOCAUSTIC  
    642 {  
    643  
    644    technique  
    645    {  
    646     
    647       pass  
    648       {  
    649                 IllumTechniques 
    650                 { 
    651                         RenderTechnique ColorCubeMap 
    652                         { 
    653                                 update_interval         0 
    654                                 distance_calc true 3.5                                   
    655                         } 
    656                         RenderTechnique DistanceCubeMap 
    657                         { 
    658                                 update_interval         0 
    659                                 distance_calc true 3.5                                           
    660                         }        
    661                          
    662                  } 
    663        
    664        
    665          vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 
    666      {        
    667             param_named_auto worldViewProj worldviewproj_matrix  
    668             param_named_auto world world_matrix  
    669      }  
    670          fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedPS 
    671      {  
    672                 param_named_auto cameraPos camera_position 
    673                 param_named_auto lightPosition light_position 0 
    674          }  
    675                  
    676          //Cube map for reflections and refractions      
    677          texture_unit 
    678          { 
    679            cubic_texture cubemap.jpg combinedUVW 
    680            tex_address_mode clamp 
    681            colour_op replace 
    682          } 
    683  
    684         //Cube map of distances 
    685          texture_unit 
    686          { 
    687            cubic_texture cubemap.jpg combinedUVW 
    688            tex_address_mode clamp 
    689            colour_op replace 
    690          } 
    691  
    692  
    693         } 
    694     } 
    695 } 
    696  
    697 material GameTools/CubeMap/LocalizedBump  
    698 {  
    699  
    700    technique  
    701    {  
    702     
    703       pass  
    704       {  
    705          vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedBumpVS 
    706      {        
    707             param_named_auto worldViewProj worldviewproj_matrix  
    708             param_named_auto world world_matrix  
    709      }  
    710          fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedBumpPS 
    711      {  
    712                 param_named_auto cameraPos camera_position 
    713                 param_named_auto lightPosition light_position 0 
    714          }  
    715                  
    716          //Cube map for reflections and refractions      
    717          texture_unit 
    718          { 
    719            cubic_texture cubemap.jpg combinedUVW 
    720            tex_address_mode clamp 
    721            colour_op replace 
    722          } 
    723  
    724         //Cube map of distances 
    725          texture_unit 
    726          { 
    727            cubic_texture cubemap.jpg combinedUVW 
    728            tex_address_mode clamp 
    729            colour_op replace 
    730          } 
    731           
    732          //normal map 
    733          texture_unit 
    734          { 
    735            texture atheneNormalMapNew.dds 
    736                 //texture atheneNormalMap.png 
    737          } 
    738          texture_unit 
    739          { 
    740            texture atheneDisplacementMap.bmp 
    741          } 
    742  
    743  
    744         } 
    745     } 
    746 } 
    747  
    748 material GameTools/CubeMap/Diffuse  
    749 {  
    750    technique  
    751    {  
    752       pass  
    753       {  
    754                  
    755                 IllumTechniques 
    756                 { 
    757                         RenderTechnique ReducedColorCubeMap 
    758                         { 
    759                                 update_interval         3 
    760                                 distance_calc false 
    761                                 face_angle_calc false 
    762                                 update_all_face         false 
    763                         } 
    764                 } 
    765        
    766  
    767                 vertex_program_ref GameTools/DiffuseVS 
    768                 {        
    769                  param_named_auto worldViewProj worldviewproj_matrix  
    770                 param_named_auto world world_matrix   
    771          
    772                 }  
    773                 fragment_program_ref GameTools/DiffusePS 
    774                 {  
    775                         param_named_auto cameraPos camera_position 
    776                         param_named REDUCED_CUBEMAP_SIZE int 8 
    777                         param_named lastCenter float3 0 0 0              
    778                 }  
    779                  
    780                 //Cube map for reflections and refractions       
    781                 texture_unit 
    782                 { 
    783                         cubic_texture cubemap.jpg combinedUVW 
    784                         tex_address_mode clamp 
    785                         colour_op replace 
    786                 } 
    787  
    788                 //Cube map of distances 
    789                 texture_unit 
    790                  { 
    791                    cubic_texture cubemap.jpg combinedUVW 
    792                    tex_address_mode clamp 
    793                    colour_op replace 
    794                  } 
    795          } 
    796    } 
    797 } 
    798  
    799  
    800  
    801 material GameTools/CubeMap/LocalizedMetal  
    802 {  
    803  
    804    technique  
    805    {  
    806       pass  
    807       {  
    808          vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 
    809          {        
    810             param_named_auto worldViewProj worldviewproj_matrix  
    811             param_named_auto world world_matrix 
    812              
    813          }  
    814          fragment_program_ref   GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS 
    815          {  
    816             param_named_auto cameraPos camera_position 
    817             param_named n float3 0.21 0.96 1.17 
    818             param_named k float3 4.16 2.57 2.32 
    819          }  
    820                  
    821          //Cube map for reflections and refractions      
    822          texture_unit 
    823          { 
    824            cubic_texture cubemap.jpg combinedUVW 
    825            tex_address_mode clamp 
    826            colour_op replace 
    827          } 
    828  
    829         //Cube map of distances 
    830          texture_unit 
    831          { 
    832            cubic_texture cubemap.jpg combinedUVW 
    833            tex_address_mode clamp 
    834            colour_op replace 
    835          } 
    836  
    837  
    838         } 
    839     } 
    840 } 
    841  
    842  
    84394material GameTools/DistanceShader 
    84495{  
     
    861112    } 
    862113} 
    863  
    864  
    865 material GameTools/PhotonMapCaustic 
    866 {  
    867    technique  
    868    {  
    869  
    870         pass  
    871       {  
    872                  vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 
    873          {        
    874             param_named_auto worldViewProj worldviewproj_matrix  
    875             param_named_auto world world_matrix      
    876             param_named_auto worldIT inverse_transpose_world_matrix 
    877          }  
    878                  fragment_program_ref  GameTools/PhotonMapCausticPS 
    879         {  
    880                         param_named_auto cameraPos camera_position 
    881                         param_named lastCenter float3 0 0 0 
    882          } 
    883           
    884          //Cube map for reflections and refractions      
    885                 texture_unit 
    886                 { 
    887                         cubic_texture  
    888                         filtering none 
    889                         //tex_address_mode clamp                         
    890                 }        
    891  
    892        } 
    893     } 
    894 } 
    895  
    896  
    897 material GameTools/PhotonMapSoftShadow 
    898 {  
    899    technique  
    900    {  
    901         pass  
    902       {  
    903                  vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 
    904          {        
    905             param_named_auto worldViewProj worldviewproj_matrix  
    906             param_named_auto world world_matrix      
    907          }  
    908                  fragment_program_ref  GameTools/PhotonMapSoftShadowPS 
    909          {  
    910                         param_named_auto cameraPos camera_position 
    911                         param_named lastCenter float3 0 0 0 
    912          } 
    913           
    914          //Cube map for reflections and refractions      
    915                 texture_unit 
    916                 { 
    917                         cubic_texture cubemap.jpg combinedUVW 
    918                         tex_address_mode clamp 
    919                         colour_op replace 
    920                         env_map cubic_reflection 
    921                 } 
    922  
    923                 //Cube map of distances 
    924                 texture_unit 
    925                 { 
    926                         cubic_texture cubemap.jpg combinedUVW 
    927                         tex_address_mode clamp 
    928                         colour_op replace 
    929                 } 
    930        } 
    931     } 
    932 } 
    933  
    934  
    935  
    936114 
    937115material GameTools/SceneCameraDepthShader 
     
    984162    } 
    985163} 
    986  
    987 material GameTools/Cau 
    988 {  
    989    technique  
    990    {  
    991         pass  
    992        
    993                 cull_hardware none 
    994                 cull_software none 
    995                 lighting off 
    996                 scene_blend add 
    997                 scene_blend src_alpha one 
    998                 depth_write off 
    999  
    1000                 vertex_program_ref GameTools/CauVS 
    1001          {        
    1002             param_named_auto worldViewProj worldviewproj_matrix  
    1003             param_named_auto worldView worldview_matrix 
    1004                         param_named_auto Proj projection_matrix 
    1005                         param_named_auto resolution viewport_width 
    1006                         param_named CauSpriteSize float 1.0          
    1007          }  
    1008                 fragment_program_ref  GameTools/CauPS 
    1009         {  
    1010                         param_named CauSpriteIntens float 1.0 
    1011         } 
    1012           
    1013             texture_unit 
    1014                 { 
    1015                         vertex_texture true 
    1016                         texture flare.png 
    1017                 } 
    1018                 texture_unit 
    1019                 { 
    1020                         texture PowerOfPhotonHitTexel.dds 
    1021                 } 
    1022  
    1023        } 
    1024     } 
    1025 } 
    1026  
    1027 material GameTools/SpriteShader 
    1028 {  
    1029  
    1030    technique  
    1031    {  
    1032         pass  
    1033       {  
    1034                  
    1035                 cull_hardware none 
    1036                 cull_software none 
    1037                 lighting off 
    1038                 scene_blend add 
    1039                 depth_write off 
    1040  
    1041                 vertex_program_ref GameTools/SpriteVS 
    1042                         {        
    1043                                 param_named_auto worldViewProj worldviewproj_matrix  
    1044                                 param_named_auto worldView worldview_matrix 
    1045                                 param_named_auto Proj projection_matrix      
    1046                         }  
    1047                 fragment_program_ref  GameTools/SpritePS 
    1048                         {  
    1049                           
    1050                         } 
    1051  
    1052                 texture_unit 
    1053                 { 
    1054                 texture flare.png 
    1055                 } 
    1056  
    1057        } 
    1058     } 
    1059 } 
    1060  
    1061  
    1062 material GameTools/SBB 
    1063 {  
    1064  
    1065    technique  
    1066    {  
    1067         pass  
    1068       {  
    1069         lighting off 
    1070          
    1071         scene_blend src_alpha one 
    1072         //scene_blend src_alpha one_minus_src_alpha 
    1073         depth_write off 
    1074         depth_check off 
    1075          
    1076          vertex_program_ref GameTools/SBBVS 
    1077          {        
    1078             param_named_auto worldViewProj worldviewproj_matrix  
    1079             param_named_auto worldView worldview_matrix 
    1080             param_named_auto Proj projection_matrix 
    1081             param_named_auto width viewport_width        
    1082             param_named_auto height viewport_height  
    1083                  
    1084              
    1085          }  
    1086          fragment_program_ref  GameTools/SBBPS 
    1087          {  
    1088             param_named_auto farplane far_clip_distance    
    1089             param_named_auto nearplane near_clip_distance 
    1090                    
    1091          } 
    1092  
    1093          texture_unit 
    1094          { 
    1095            anim_texture smokealpha.tga 32 2.0 
    1096                 //texture flare.png 
    1097          } 
    1098  
    1099          texture_unit 
    1100          { 
    1101            filtering none 
    1102          } 
    1103          
    1104          texture_unit 
    1105          { 
    1106            texture planck.tga 
    1107          } 
    1108  
    1109        } 
    1110     } 
    1111 } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/kupola.material

    r1085 r1094  
    1313                        RenderTechnique CausticReciever 
    1414                        { 
     15                                max_caster_count        10 
     16                        } 
     17                        //RenderTechnique DepthShadowReciever 
     18                        //{ 
    1519                                 
    16                         } 
    17                         RenderTechnique DepthShadowReciever 
    18                         { 
    19                                  
    20                         } 
     20                        //} 
    2121                } 
    2222                 
     
    6666                                RenderTechnique CausticReciever 
    6767                                { 
     68                                        max_caster_count        10 
     69                                } 
     70                                //RenderTechnique DepthShadowReciever 
     71                                //{ 
    6872                                         
    69                                 } 
    70                                 RenderTechnique DepthShadowReciever 
    71                                 { 
    72                                          
    73                                 } 
     73                                //} 
    7474                        } 
    7575                         
Note: See TracChangeset for help on using the changeset viewer.