swiftkill

shared a snapshot.
Web 4f9e42c6d99a6b1ca7000001

Jonny 5 and spotlight test

  • highstaker

    It looks like the engine cannot process more than two projector shadows at once... that's a pity

  • swiftkill

    I looked in code - there are _only_ two projectors shadows processed - look at pipeline.cpp, after comment //hack to disable projector shadows

  • swiftkill

    //update shadow targets
    for (U32 i = 0; i < 2; i++)
    { //for each current shadow
    LLViewerCamera::sCurCameraID = LLViewerCamera::CAMERA_SHADOW4+i;

    if (mShadowSpotLight[i].notNull() &&
    (mShadowSpotLight[i] == mTargetShadowSpotLight[0] ||
    mShadowSpotLight[i] == mTargetShadowSpotLight[1]))
    { //keep this spotlight
    mSpotLightFade[i] = llmin(mSpotLightFade[i]+fade_amt, 1.f);
    }
    else
    { //fade out this light
    mSpotLightFade[i] = llmax(mSpotLightFade[i]-fade_amt, 0.f)