Changeset 2507


Ignore:
Timestamp:
07/03/07 15:49:12 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Station/StationBase.hlsl

    r2474 r2507  
    201201        float4 diffuseColor = tex2D(colorTexture, IN.texCoord); 
    202202        float4 obscurancescolor = tex2D(obscuranceTexture, IN.texCoord); 
    203         float4 combinedColor = diffuseColor * obscurancescolor; 
     203        //float4 combinedColor = diffuseColor * obscurancescolor; 
     204        float4 combinedColor = diffuseColor; 
    204205         
    205206        //---------------------------------------------------------------------------------------------------------------- 
     
    243244        float4 indirect = PathMapIndirect(PathMap, WeightIndexMap, WeightMap, IN.texCoord); 
    244245        indirect *= diffuseColor; 
    245         Color = Color + indirect; 
     246        Color = Color + indirect * 1.5; 
     247        //Color = Color + diffuseColor * 0.1; 
    246248         
    247249        if(causticReceiver) 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Station/scientist.material

    r2489 r2507  
    7777        } 
    7878} 
    79  
     79                 
    8080material scientist_body : scientist_base 
    8181{ 
     
    149149 
    150150 
    151                  
    152                  
    153  
    154          
    155          
    156          
    157          
     151material scientist_base1 
     152{ 
     153        technique main 
     154        {                
     155                pass direct 
     156                { 
     157                        ambient 0 0 0 1 
     158                        diffuse 0.3 0.3 0.3 1 
     159                        specular 0 0 0 0 
     160                        texture_unit color 
     161                        { 
     162                                 
     163 
     164                        } 
     165                } 
     166        } 
     167} 
     168                 
     169material scientist_body1 : scientist_base 
     170{ 
     171        technique main 
     172        { 
     173                pass direct 
     174                { 
     175                        texture_unit color 
     176                        { 
     177                                texture scientist_body.bmp                               
     178                        } 
     179                } 
     180 
     181        } 
     182 
     183} 
     184 
     185material scientist_glass1 : scientist_base 
     186{ 
     187        technique main 
     188        { 
     189                pass direct  
     190                { 
     191                        texture_unit color 
     192                        { 
     193                                texture scientist_chrome.bmp 
     194                        } 
     195                } 
     196 
     197        } 
     198 
     199} 
     200 
     201material scientist_head1 : scientist_base 
     202{ 
     203        technique main 
     204        { 
     205                pass direct 
     206                { 
     207                        texture_unit color 
     208                        { 
     209                                texture scientist_head.bmp 
     210                        } 
     211                } 
     212 
     213        }        
     214 
     215} 
     216 
     217 
     218 
     219                 
     220                 
     221 
     222         
     223         
     224         
     225         
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Station/stationIllum.hlsl

    r2474 r2507  
    1515        L = normalize(L); 
    1616                 
    17 #ifdef HIGH_QUALITY 
     17//#ifdef HIGH_QUALITY 
    1818 
    1919        //Phong-Blinn 
     
    2323         
    2424        float lightAngleCos = cos(70.0 / 180.0 * 3.14); 
    25         float falloff = (dot(-L, lightDir) - lightAngleCos) / (1.0 - lightAngleCos); 
     25        float falloff = (max(dot(-L, lightDir), 0) - lightAngleCos) / (1.0 - lightAngleCos); 
    2626        falloff = pow(saturate(falloff), 2); 
    2727         
     
    3131                         ; 
    3232                          
    33 #else 
     33//#else 
    3434 
    35         return  lightColor * diffuseColor * dot(L,N) * pow(max(dot(-L, lightDir),0),9) / (3*d*d); 
     35//      return  lightColor * diffuseColor * dot(L,N) * pow(max(dot(-L, lightDir),0),9) / (3*d*d); 
    3636         
    37 #endif   
     37//#endif         
    3838} 
    3939 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Towers/towers.material

    r2441 r2507  
    174174                                        max_light_count 1 
    175175                                        vertex_program_name GTP/Basic/LightVPos_VS 
    176                                         fragment_program_name GTP/Basic/SM/Depth_PS 
     176                                        fragment_program_name GTP/Basic/SM/Depth_VSM_PS 
    177177                                        set_light_viewproj true 
    178178                                        set_light_view false 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPShadowMap_PS.hlsl

    r2442 r2507  
    1212}; 
    1313 
    14 #define DEPTH_BIAS      0.001 
    15 #define DEPTH_BIAS_VSM  0.001 
    16 #define DEPTH_EPSILON   0.05 
     14#define DEPTH_BIAS      0.01 
     15#define DEPTH_BIAS_VSM  0.00005 
     16#define DEPTH_EPSILON   0.01 
    1717#define DIST_BIAS       0.005 
    1818#define DIST_BIAS_VSM   0.0005 
     
    2121//#define shadowColor float4(0.95,0.95,0.95,1) 
    2222#define shadowColor float4(0.8,0.8,0.8,1) 
    23 //#define shadowColor float4(0.2,0.2,0.2,1) 
     23#define shadowColor2 float4(0.2,0.2,0.2,1) 
    2424//#define shadowColor float4(0.0,0.0,0.0,1) 
    2525 
     
    3737        float storedDepth = abs(tex2D(shadowMap, pos.xy).r); 
    3838        //light = (pos.z - storedDepth.r)*100.0; 
    39         light = max(storedDepth + DEPTH_BIAS > pos.z, shadowColor);                      
     39        light = max(storedDepth + DEPTH_BIAS > pos.z, shadowColor2);                     
    4040  }              
    4141  return light;  
     
    7070   light = 0;    
    7171         
    72   return shadowColor + (1 - shadowColor) * light;        
     72  return light;  
    7373   
    7474} 
Note: See TracChangeset for help on using the changeset viewer.