- Timestamp:
- 08/27/08 15:09:04 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2867 r2873 101 101 102 102 pixel frag(fragin IN, 103 uniform float maxDepth, 104 uniform float4 ambient, 105 uniform float4 diffuse) 103 uniform float maxDepth, 104 uniform float4 ambient, 105 uniform float4 diffuse 106 ) 106 107 { 107 108 pixel pix; … … 109 110 pix.col = diffuse; 110 111 pix.pos = IN.worldPos * maxDepth; 112 111 113 //pix.norm.xyz = IN.normal * 0.5f + float3(0.5f); 112 114 pix.norm.xyz = IN.normal; 115 113 116 // hack: squeeze some information about the ambient term into the target 114 117 pix.norm.w = ambient.x; 115 118 pix.pos.w = IN.mypos.w; 119 120 // the projected depth 116 121 pix.col.w = IN.mypos.z / IN.mypos.w; 117 122
Note: See TracChangeset
for help on using the changeset viewer.