id-tech-3-tools / map-compiler

id Tech 3 Map Compiler
MIT License
8 stars 4 forks source link

Add -extradist alias #28

Closed isRyven closed 6 years ago

isRyven commented 6 years ago

That flag decreases light contribution from a light sources by increasing the extra distance:

    /* clamp the distance to prevent super hot spots */
    dist = sqrt( dist * dist + light->extraDist * light->extraDist );
    if ( dist < 16.0f ) {
        dist = 16.0f;
    }
    add = light->photons / ( dist * dist ) * angle;