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

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.