Ignore:
Timestamp:
11/02/08 17:35:59 (16 years ago)
Author:
mattausch
Message:

somehow working wih eye linear depth, but terrile precision (especially for objects farther in the background)!!!

File:
1 edited

Legend:

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

    r3081 r3087  
    205205        OUT.color = useShading ? (ambient + diffuse) * color : color; 
    206206 
    207         // store scaled view vector from now on so wie don't have to normalize for e.g., ssao 
     207        // store scaled view vector from now on so wie don't have to normalize later (e.g., for ssao) 
    208208        OUT.color.w = color.w / lenView; 
    209209 
     
    215215        as well as a boolean that  
    216216*/ 
    217 pixel (fragment IN,  
    218                    uniform sampler2D colors, 
    219                    uniform sampler2D normals, 
     217pixel Reproject(fragment IN,  
     218                                uniform sampler2D colors, 
     219                                uniform sampler2D normals) 
    220220{ 
    221221        float4 norm = tex2Dlod(normals, float4(IN.texCoord, 0 ,0)); 
Note: See TracChangeset for help on using the changeset viewer.