Changeset 2467 for GTP


Ignore:
Timestamp:
06/25/07 17:50:39 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/FPSArm_PS.hlsl

    r2458 r2467  
    4646        float4 diffuseColor = albedo * tex2D(colorTexture, IN.texCoord); 
    4747         
    48         if(lightPower1 !=0) 
     48        if( dot(lightRange1, lightRange1) !=0) 
    4949        Color = Illumination(N, L1, V, lightColor1 * lightPower1, lightRange1, diffuseColor, specularity, specularColor); 
    5050         
    51         if(lightPower2 !=0) 
     51        if( dot(lightRange2, lightRange2) !=0) 
    5252        Color = Illumination(N, L2, V, lightColor2 * lightPower2, lightRange2, diffuseColor, specularity, specularColor); 
    5353         
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/FPSarm.material

    r2458 r2467  
    9494                            param_named_auto lightColor2 light_diffuse_colour 1 
    9595                            param_named specularity float 100 
    96                             param_named albedo float 0.1 
     96                            param_named albedo float 0.4 
    9797                            param_named specularColor float4 0 0 0 0                     
    9898                        } 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl

    r2458 r2467  
    4545         
    4646        float4 diffuseColor = albedo * tex2D(colorTexture, IN.texCoord); 
    47         if(lightPower1 != 0) 
     47        if( dot(lightRange1, lightRange1) != 0) 
    4848        Color += Illumination(N, L1, V, lightColor1 * lightPower1, lightRange1, diffuseColor, specularity, specularColor); 
    49         if(lightPower2 != 0) 
     49        if(dot(lightRange2, lightRange2) != 0) 
    5050        Color += Illumination(N, L2, V, lightColor2 * lightPower2, lightRange2, diffuseColor, specularity, specularColor); 
    5151         
Note: See TracChangeset for help on using the changeset viewer.