Lowestvariance section image space image effects with directx pixel shaders float
514 |
|
---|
mean = tex2D(meanMap,In.texCoord);
total =0;// Compute the the partial variance for the L-shape.
c.xyz |
|
|
---|---|---|
c.a | = variance; |
|
|
---|
sampleCoords[2] = In.texCoord + sampleOffsets[5] + sampleOffsets[6]; //dn left
sampleCoords[3] = In.texCoord + sampleOffsets[7] + sampleOffsets[7]; //dn right
// Compare the winners of the two previous compares.
if( l2a < la )
{
lowestVariance = lowestVariance2;
}