Ignore:
Timestamp:
06/08/07 00:05:53 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasicShading.hlsl

    r2414 r2422  
    5959        float cosb = max(dot(IN.wNormal.xyz, diff), 0); 
    6060         
    61         //color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower1 * lightColor1; 
    62         color.rgb += cosb / dist2 * lightPower1 * lightColor1; 
     61        color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower1 * lightColor1; 
     62        //color.rgb += cosb / dist2 * lightPower1 * lightColor1; 
    6363         
    6464        } 
    65          
     65        /* 
    6666        { 
    6767        float3  lightDir = normalize(lightDir2); 
     
    7575        float cosb = max(dot(IN.wNormal.xyz, diff), 0); 
    7676         
    77         //color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower2 * lightColor2; 
    78         color.rgb += cosb / dist2 * lightPower1 * lightColor1;   
     77        color.rgb += pow(cosa, 9) * cosb / dist2 * lightPower2 * lightColor2; 
     78        //color.rgb += cosb / dist2 * lightPower1 * lightColor1;         
    7979        }        
    80          
     80        */ 
    8181        //color.rgb *= lightPower; 
    8282        //return 0; 
    83         return color * tex2D(colorTex, IN.texCoord); 
     83        return  (color) * tex2D(colorTex, IN.texCoord); 
    8484} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPShadowMap_PS.hlsl

    r2404 r2422  
    1919#define DIST_EPSILON    0.001 
    2020 
    21 //#define shadowColor float4(0.9,0.9,0.9,1) 
     21//#define shadowColor float4(0.95,0.95,0.95,1) 
    2222#define shadowColor float4(0.2,0.2,0.2,1) 
    2323 
     
    8888                pos.y = 1.0 - pos.y; 
    8989                float storedDist = tex2D(shadowMap, pos.xy).r; 
    90                 light = max(dist < storedDist + DIST_BIAS, shadowColor);     
    9190                light = dist < storedDist + DIST_BIAS; 
    9291                //if(dist < storedDist + DIST_BIAS) 
    93                 //light = 1; 
     92                //      light = 1; 
    9493    } 
    9594  } 
    96          
     95  light = max(light, shadowColor);     
     96                         
    9797  return light; 
    9898} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPathMap/PathMap.hlsl

    r2409 r2422  
    1111{ 
    1212    float4 pos                  : POSITION; 
    13     float2 tex                  : TEXCOORD1; 
    14     float2 texAtlas             : TEXCOORD2; 
     13    float2 tex                  : TEXCOORD0; 
     14    float2 texAtlas             : TEXCOORD1; 
    1515}; 
    1616 
     
    2828        output.pos = mul(WorldViewProj, input.pos); 
    2929        output.tex = input.tex; 
    30         output.texAtlas = input.tex;     
     30        output.texAtlas = input.texAtlas;        
    3131        return output; 
    3232} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPathMap/PathMapWeightCompute.hlsl

    r2417 r2422  
    7979    //visibility = 1.0 - visibility; 
    8080    //visibility = 1.0 + 0.00001 * visibility; 
    81         //float spotFalloff = (dot(-diff, lightDir) - lightAngleCos) / (1.0 - lightAngleCos); 
    82         float spotFalloff = max( dot(-diff, lightDir), 0) + 0.0000000001 * lightAngleCos; 
     81        float spotFalloff = (dot(-diff, lightDir) - lightAngleCos) / (1.0 - lightAngleCos); 
     82        //float spotFalloff = max( dot(-diff, lightDir), 0) + 0.0000000001 * lightAngleCos; 
    8383        //spotFalloff = 1.0 + spotFalloff * 0.000000001; 
    8484        spotFalloff = pow(saturate(spotFalloff), spotLightFalloff); 
     
    153153                 
    154154                float3 w = tex2Dlod(allWeightsSampler, float4(coord1, 0, 0)).rgb; 
    155                 float radrad = 1;// tex2Dlod(radionSampler, float4(coord2, 0, 0)).a;             
     155                float radrad = tex2Dlod(radionSampler, float4(coord2, 0, 0)).a;          
    156156                weight += w * radrad;            
    157157                clusterRad += radrad; 
Note: See TracChangeset for help on using the changeset viewer.