Changeset 3077 for GTP


Ignore:
Timestamp:
10/29/08 01:08:56 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp

    r3070 r3077  
    292292        // downscale ambient color 
    293293        if (scaleToRange) 
    294                 ambient *= 2e-5f; 
     294                ambient *= 5e-6f; 
    295295        else 
    296296                ambient *= 1e-1f; 
     
    298298        // simulate the sun intensity by modulating the ambient term. 
    299299        ambient *= (10.0f - 9.0f * DotProd(sunDir, Vector3::UNIT_Z())); 
    300         //ambient += Vector3(0.2f); 
     300 
    301301 
    302302        Vector3 num; 
     
    330330        color.z =  0.055648f * XYZ.x - 0.204043f * XYZ.y + 1.057311f * XYZ.z; 
    331331 
    332         // Calculate final sun diffuse color. 
     332        // calculate final sun diffuse color. 
    333333        if (scaleToRange) 
    334                 diffuse = color * 5e-2f; 
     334                diffuse = color * 1e-5f; 
    335335        else 
    336336                diffuse = color * 3e-1f; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3076 r3077  
    773773 
    774774        // no tone mapping => scale 
    775         if (!useToneMapping) 
    776         { 
    777                 const float maxComponent = sunDiffuse.MaxComponent(); 
     775        if (0)//!useToneMapping) 
     776        { 
     777                float maxComponent = sunDiffuse.MaxComponent(); 
    778778                sunDiffuse /= maxComponent; 
    779779        } 
     
    782782        diffuse[1] = sunDiffuse.y; 
    783783        diffuse[2] = sunDiffuse.z; 
     784 
     785        //cout << sunDiffuse << " " << sunAmbient << endl; 
    784786 
    785787        glLightfv(GL_LIGHT0, GL_AMBIENT, ambient); 
Note: See TracChangeset for help on using the changeset viewer.