Ignore:
Timestamp:
07/10/08 18:39:50 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2829 r2830  
    44 
    55#define NUM_SAMPLES 8 
    6 #define SAMPLE_INTENSITY 0.5f 
    7 //#define SAMPLE_INTENSITY 0.7f 
     6//#define SAMPLE_INTENSITY 0.5f 
     7//#define SAMPLE_INTENSITY 1.1f 
     8#define SAMPLE_INTENSITY 0.7f 
    89#define AREA_SIZE 5e-1f 
    9  
    10 // kustls magic sample positions 
    11 /*static const float2 samples[NUM_SAMPLES] = 
    12 { 
    13   {-0.326212f, -0.405805f}, 
    14   {-0.840144f, -0.07358f}, 
    15   {-0.695914f, 0.457137f}, 
    16   {-0.203345f, 0.620716}, 
    17   {0.96234f, -0.194983f}, 
    18   {0.473434f, -0.480026f}, 
    19   {0.519456, 0.767022f}, 
    20   {0.185461f, -0.893124f}, 
    21   {0.507431f, 0.064425f}, 
    22   {0.89642f, 0.412458f}, 
    23   {-0.32194f, -0.932615f}, 
    24   {-0.791559f, -0.597705f}, 
    25   {0.326212f, 0.405805f}, 
    26   {0.840144f, 0.07358f}, 
    27   {0.695914f, -0.457137f}, 
    28   {0.203345f, -0.620716}, 
    29   {-0.96234f, 0.194983f}, 
    30   {-0.473434f, 0.480026f}, 
    31   {-0.519456, -0.767022f}, 
    32   {-0.185461f, 0.893124f}, 
    33   {-0.507431f, -0.064425f}, 
    34   {-0.89642f, -0.412458f}, 
    35   {0.32194f, 0.932615f}, 
    36   {0.791559f, 0.597705f} 
    37 };*/ 
    3810 
    3911 
     
    11991    float cos_angle = dot(direction_to_sample, currentNormal); 
    12092    cos_angle = max(cos_angle, 0.0f); 
    121     cos_angle *= cos_angle; 
     93    // take quadratic influence to sharpen contrast 
     94    //cos_angle *= cos_angle; 
    12295 
    12396    // distance between current position and sample position controls AO intensity. 
Note: See TracChangeset for help on using the changeset viewer.