Ignore:
Timestamp:
07/04/08 15:40:05 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r2816 r2817  
    7979 
    8080  //const float areaSize = 5e-1f; 
    81   const float areaSize = 2e-1f; 
    82   const float sampleIntensity = 0.1f; 
     81  const float areaSize = 3e-1f; 
     82  const float sampleIntensity = 0.2f; 
    8383   
    8484  for (int i = 0; i < SAMPLES; i ++) { 
     
    130130  pixel OUT; 
    131131 
    132   float4 lightDir = float4(0.8f, 1.0f, 1.5f, 0.0f); 
     132  float4 lightDir = float4(0.8f, -1.0f, 0.7f, 0.0f); 
    133133  float4 lightDir2 = float4(-0.5f, 0.5f, 0.4f, 0.0f); 
    134134   
     
    145145  // float3 L = normalize(lightPosition - position); 
    146146  float3 light = normalize(lightDir.xyz); 
    147   float3 light2 = normalize(lightDir.xyz); 
     147  float3 light2 = normalize(lightDir2.xyz); 
    148148 
    149149  float diffuseLight = max(dot(normal, light), 0.0f); 
     
    155155  //OUT.color = ao;  
    156156  OUT.color = ao * (ambient + diffuse) * color; 
     157//OUT.color = (ambient + diffuse) * color; 
    157158 
    158159  //float4 currentPos = tex2D(normals, IN.texCoord.xy) * 0.5f + 0.5f; 
    159   //float4 currentPos = tex2D(positions, IN.texCoord.xy); 
    160   //OUT.color = currentPos.w; 
    161    
    162      
     160  //float4 currentPos = tex2D(normals, IN.texCoord.xy); 
     161  //OUT.color = currentPos; 
     162       
    163163  return OUT; 
    164164} 
Note: See TracChangeset for help on using the changeset viewer.