ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.79k stars 2k forks source link

Potentially missing shader and equivalent if-else blocks #342

Open abandoned-cocoon opened 9 years ago

abandoned-cocoon commented 9 years ago

In lightmappedgeneric_dx9_helper.cpp around line 1080

    if ( !IsX360() && !r_flashlight_version2.GetInt() )
    {
        DrawLightmappedGeneric_DX9_Internal( pShader, params, hasFlashlight, pShaderAPI, pShaderShadow, info, pContextDataPtr );
        return;
    }

    DrawLightmappedGeneric_DX9_Internal( pShader, params, hasFlashlight, pShaderAPI, pShaderShadow, info, pContextDataPtr );

Both calls are exactly the same.

In BaseVSShader.cpp around line 830

    if ( bDetail & bDetailMultiplyMode )
        return "alphadist_ps11";

Source code for alphadist_ps11 is nowhere to be found in the repository.