- Timestamp:
- 04/30/09 16:22:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3366 r3367 20 20 { 21 21 float4 illum_col: COLOR0; 22 float4 col: COLOR1;23 22 }; 24 23 … … 549 548 // they possibly have any influence on the ao 550 549 551 if (cosAngle >= 0) 550 const float3 oldVector = oldSamplePos - oldPos; 551 const float oldDistance = length(oldVector); 552 const float cosAngle2 = dot(oldVector, normal); 553 554 if ((cosAngle >= 0) || (cosAngle2 >= 0)) 552 555 { 553 556 const float oldDistance = length(oldSamplePos - oldPos); … … 615 618 uniform float kernelRadius, 616 619 uniform float sampleIntensity 620 ,uniform float dummyIdx 617 621 ) 618 622 { … … 757 761 OUT.illum_col.w = eyeSpaceDepth; 758 762 759 // this value can be used to check if this pixel belongs to a moving object760 OUT.col.x = SqrLen(diffVec);761 //OUT.illum_col.z = SqrLen(diffVec);762 763 763 #else 764 764
Note: See TracChangeset
for help on using the changeset viewer.