Ignore:
Timestamp:
11/30/08 20:41:23 (16 years ago)
Author:
mattausch
Message:

removed some visual bugs (trees against sky), flickering much better now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/normalMapping.cg

    r3195 r3198  
    127127        //const float3 tangentSpaceNorm = tex2Dlod(normalMap, float4(IN.texCoord.xy, 0, 0)).xyz * 2.0f - float3(1.0f); 
    128128        const float3 tangentSpaceNorm = tex2Dlod(normalMap, float4(IN.texCoord.xy, 0, 0)).xyz; 
    129         pix.normal = mul(tangToWorldTrafo, tangentSpaceNorm); 
    130         //pix.normal = tangentSpaceNorm; 
     129        //pix.normal = mul(tangToWorldTrafo, tangentSpaceNorm); 
     130        pix.normal = normalize(mul(tangToWorldTrafo, tangentSpaceNorm)); 
    131131         
    132132        return pix; 
Note: See TracChangeset for help on using the changeset viewer.