Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actuallipsryme

Posted 08 February 2013 - 08:15 AM

Hmm not sure outputting the fracs shows me anything helpful tongue.png http://d.pr/i/yxp2 (It does look the same in MJP's samples though...)

 

edit: the bias is there it's being applied in the application like this:

 

// Apply the scale / offset / bias matrix, which transforms from [-1,1]
// post-projection space to [0,1] UV space
const float bias = Bias;
XMMATRIX texScaleBias;
texScaleBias.r[0] = XMVectorSet(0.5f,  0.0f,  0.0f,  0.0f);
texScaleBias.r[1] = XMVectorSet(0.0f, -0.5f,  0.0f,  0.0f);
texScaleBias.r[2] = XMVectorSet(0.0f,  0.0f,  1.0f,  0.0f);
texScaleBias.r[3] = XMVectorSet(0.5f,  0.5f, -bias,  1.0f);
shadowMatrix = XMMatrixMultiply(shadowMatrix, texScaleBias);

 

 


#1lipsryme

Posted 08 February 2013 - 06:28 AM

Hmm not sure outputting the fracs shows me anything helpful :P http://d.pr/i/yxp2 (It does look the same in MJP's samples though...)


PARTNERS