- Iggyhopper
- |
- Exalted Mythic Member
AV=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
BG=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
Posted by: A Baked Grunt
Posted by: urk
float ComputeESM( float2 vShadowMapUVs, float fReceiverDepth,
float fCascadeIndex )
{
// Filtered look up using mip mapping
float fOccluderExponential = tCascadeShadowMaps.Sample(
sShadowLinearClamp,
float3(vShadowMapUVs,fCascadeIndex)).r;
float fReceiverExponential = exp( -fESMExponentialMultiplier *
fReceiverDepth );
float fESMShadowTest = fOccluderExponential * fReceiverExponential;
return saturate(fESMShadowTest);
}
Make any sense to you? Yeah, me neither. Mip Mapping, yo. Mip mapping.
I'm assuming that was either C# or C++. I could make sense of most of it, but I'd have to see it in context to work it all out 100%. :)That's got to be C++, better yet managed C++.
I read the light publication, and holy algorithm batman, that's a lot of code!
[Edited on 10.02.2009 11:49 PM PDT]