Ignore:
Timestamp:
07/09/08 03:05:23 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2823 r2825  
    11#define NUM_SAMPLES 12 
    2 //#define SAMPLE_INTENSITY 0.4f 
    3 #define SAMPLE_INTENSITY 0.7f 
     2#define SAMPLE_INTENSITY 1.2f 
     3//#define SAMPLE_INTENSITY 0.7f 
    44#define AREA_SIZE 5e-1f 
    55 
     
    102102    float2 offsetTransformed = rotate(offset, noise); 
    103103    //float2 offsetTransformed = reflect(offset, noise); 
    104  
    105     //offsetTransformed.x = noise.r * offset.x - noise.g * offset.y; 
    106     //offsetTransformed.y = noise.g * offset.x + noise.r * offset.y; 
    107                  
     104                
    108105    // weight with projected coordinate to reach similar kernel size for near and far 
    109106    float2 texcoord = IN.texCoord.xy + offsetTransformed * AREA_SIZE * w; 
     
    118115    float cos_angle = dot(direction_to_sample, currentNormal); 
    119116    cos_angle = max(cos_angle, 0.0f); 
    120      
     117    cos_angle *= cos_angle; 
     118 
    121119    // distance between current position and sample position controls AO intensity. 
    122     //const float maxdist = 2e-1f; 
     120    //const float maxdist = 4e-1f; 
    123121    const float maxdist = 5e-1f; 
    124122     
Note: See TracChangeset for help on using the changeset viewer.