Ignore:
Timestamp:
06/24/07 10:58:31 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r2442 r2458  
    2828uniform float lightPower2; 
    2929uniform float4 lightColor1; 
    30 uniform float4 lightColor2; 
     30float4 lightColor2 = 0; 
    3131                                                 
    3232uniform float4x4 LightView1; 
     
    100100float shadow; 
    101101 
    102 //if(dot(lightColor1, lightColor1) != 0) 
    103 //{ 
     102if( dot(lightRange1, lightRange1) != 0) 
     103{ 
    104104        L = wLightPos1.xyz - IN.wPos * wLightPos1.w; 
    105105        //illumination 
     
    112112         
    113113        //Color = col; 
    114 //} 
     114} 
    115115 
    116116//---------------------------------------------------------------------------------------------------------------- 
    117117//light2                         
    118 /*if(dot(lightColor2, lightColor2) != 0) 
     118if( dot(lightRange2, lightRange2) != 0 ) 
    119119{ 
    120120        //light dir 
     
    126126        shadow = shadowPoint(ShadowMap2Point, lightCPos, lightFarPlane2); 
    127127        Color += col * shadow;   
    128 }*/ 
     128} 
    129129         
    130130        //do Path Map to gather indirect illumination 
Note: See TracChangeset for help on using the changeset viewer.