Changeset 2825 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 07/09/08 03:05:23 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r2823 r2825 1 1 #define NUM_SAMPLES 12 2 //#define SAMPLE_INTENSITY 0.4f3 #define SAMPLE_INTENSITY 0.7f2 #define SAMPLE_INTENSITY 1.2f 3 //#define SAMPLE_INTENSITY 0.7f 4 4 #define AREA_SIZE 5e-1f 5 5 … … 102 102 float2 offsetTransformed = rotate(offset, noise); 103 103 //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 108 105 // weight with projected coordinate to reach similar kernel size for near and far 109 106 float2 texcoord = IN.texCoord.xy + offsetTransformed * AREA_SIZE * w; … … 118 115 float cos_angle = dot(direction_to_sample, currentNormal); 119 116 cos_angle = max(cos_angle, 0.0f); 120 117 cos_angle *= cos_angle; 118 121 119 // distance between current position and sample position controls AO intensity. 122 //const float maxdist = 2e-1f;120 //const float maxdist = 4e-1f; 123 121 const float maxdist = 5e-1f; 124 122
Note: See TracChangeset
for help on using the changeset viewer.