- Timestamp:
- 08/31/08 17:09:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r2888 r2889 11 11 // normalized screen position 12 12 float4 pos: WPOS; 13 float 4texCoord: TEXCOORD0;14 float3 view: COLOR0;13 float2 texCoord: TEXCOORD0; 14 float3 view: TEXCOORD1; 15 15 }; 16 16 … … 95 95 96 96 //return max(0.0f, 1.0f - total_ao); 97 //return saturate(dot(currentViewDir, currentNormal)); 98 return saturate(dot(currentViewDir, float3(0, -1, 0))); 97 return saturate(dot(currentViewDir, currentNormal)); 99 98 } 100 99 … … 125 124 float3 normal = normalize(norm.xyz); 126 125 /// the current view direction 127 float3 viewDir = normalize(IN.view * 2.0f - float3(1.0f)); 126 //float3 viewDir = normalize(IN.view * 2.0f - float3(1.0f)); 127 float3 viewDir = IN.view; 128 128 129 129 // the current world position … … 166 166 } 167 167 168 //OUT.illum_col.xyz = viewDir; 168 169 OUT.illum_col.w = currentDepth; 169 170
Note: See TracChangeset
for help on using the changeset viewer.