Hi,
I was just fixing this code, but I wonder why floorf(s0->w) is overwritten
right next with tmp_f = powf(2.0f, s0->w);
What is the right version?
Ciao, Marcus
void vshader_expp(D3DSHADERVECTOR* d, D3DSHADERVECTOR* s0) {
float tmp_f = floorf(s0->w);
DWORD tmp_d = 0;
tmp_f = powf(2.0f, s0->w);
tmp_d = *((DWORD*) &tmp_f) & 0xFFFFFF00;