Changeset 2819 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 07/07/08 15:11:03 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r2818 r2819 152 152 float diffuse = diffuseLight + diffuseLight2; 153 153 154 float ao = ssao(IN, positions, normals, noiseTexture); 154 //float ao = ssao(IN, positions, normals, noiseTexture); 155 float ao = 1.0f; 155 156 //OUT.color = ao; 156 157 OUT.color = ao * (ambient + diffuse) * color; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2818 r2819 63 63 } 64 64 65 /*struct Material 66 { 67 float4 diffuse; 68 }*/ 65 69 66 pixel frag(fragin IN, uniform sampler2D tex, uniform float maxDepth) 70 71 pixel fragtex(fragin IN, uniform sampler2D tex, uniform float maxDepth, uniform float4 diffuse) 67 72 { 68 73 pixel pix; 69 74 70 pix.col = tex2D(tex, IN.texCoord.xy);75 pix.col = diffuse * tex2D(tex, IN.texCoord.xy); 71 76 pix.pos = IN.worldPos * maxDepth; 72 77 pix.norm = IN.normal; … … 75 80 return pix; 76 81 } 82 83 84 pixel frag(fragin IN, uniform float maxDepth, uniform float4 diffuse) 85 { 86 pixel pix; 87 88 pix.col = diffuse; 89 pix.pos = IN.worldPos * maxDepth; 90 pix.norm = IN.normal; 91 pix.pos.w = IN.projPos.w; 92 93 return pix; 94 }
Note: See TracChangeset
for help on using the changeset viewer.