Ignore:
Timestamp:
07/07/08 15:11:03 (16 years ago)
Author:
mattausch
Message:
 
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  
    152152  float diffuse = diffuseLight + diffuseLight2; 
    153153 
    154   float ao = ssao(IN, positions, normals, noiseTexture); 
     154  //float ao = ssao(IN, positions, normals, noiseTexture); 
     155  float ao = 1.0f; 
    155156  //OUT.color = ao;  
    156157  OUT.color = ao * (ambient + diffuse) * color; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg

    r2818 r2819  
    6363} 
    6464 
     65/*struct Material 
     66{ 
     67  float4 diffuse; 
     68}*/ 
    6569 
    66 pixel frag(fragin IN, uniform sampler2D tex, uniform float maxDepth) 
     70 
     71pixel fragtex(fragin IN, uniform sampler2D tex, uniform float maxDepth, uniform float4 diffuse) 
    6772{ 
    6873  pixel pix; 
    6974       
    70   pix.col = tex2D(tex, IN.texCoord.xy); 
     75  pix.col = diffuse * tex2D(tex, IN.texCoord.xy); 
    7176  pix.pos = IN.worldPos * maxDepth; 
    7277  pix.norm = IN.normal; 
     
    7580  return pix; 
    7681} 
     82 
     83 
     84pixel 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.