Second Life es un mundo virtual en 3D gratuito donde los usuarios pueden socializar, establecer contactos y hacer creaciones utilizando chat de voz y de texto gratuitos.
Ábrete una cuenta en Second Life
Jonny 5 and spotlight test
It looks like the engine cannot process more than two projector shadows at once... that's a pity
I looked in code - there are _only_ two projectors shadows processed - look at pipeline.cpp, after comment //hack to disable projector shadows
//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)
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)