Ignore:
Timestamp:
09/23/08 12:11:29 (16 years ago)
Author:
mattausch
Message:

removed dirttexture stuff. started tonemapping stuff

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

    r2959 r2965  
    186186        return OUT; 
    187187} 
     188 
     189 
     190/*float4 FinalPass( SkyboxVS_Output Input ) : COLOR 
     191{ 
     192        float4 vColor = tex2D( s0, Input.Tex ); 
     193        float3 vBloom = tex2D( s1, Input.Tex ); 
     194 
     195        float vLum = g_fImageKey; 
     196        vColor.rgb = vColor;  
     197          
     198    // Tone mapping 
     199    vColor.rgb *= g_fMiddleGray /(vLum + 0.001f); 
     200    vColor.rgb *= (1.0f + vColor/LUM_WHITE); 
     201        vColor.rgb /= (1.0f + vColor); 
     202         
     203        vColor.rgb += 0.6f * vBloom; 
     204        vColor.a = 1.0f; 
     205         
     206        return vColor; 
     207}*/ 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg

    r2964 r2965  
    7272        pixel pix; 
    7373 
    74         //float4 dirtTexColor = tex2D(dirtTex, IN.texCoord.xy); 
    7574        float4 texColor = tex2D(tex, IN.texCoord.xy); 
    7675 
    7776        // save color in first render target 
    7877        // hack: use comination of emmisive + diffuse (emmisive used as constant ambient term) 
    79         //pix.col = (glstate.material.emission + glstate.material.diffuse) * texColor * dirtTexColor;  
    8078        pix.col = (glstate.material.emission + glstate.material.diffuse) * texColor;  
    8179         
Note: See TracChangeset for help on using the changeset viewer.