• Advertisement


This topic is now archived and is closed to further replies.

Vertex shader Q - D3D9 example

This topic is 5467 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is some of the code from the bone/skinning vertex shaders used in the D3D9 skinning example: ; c0 = {1, power, 0, 1020.01}; // Compensate for lack of UBYTE4 on Geforce3 mul r1,v2.zyxw,c0.wwww //mul r1,v2,c0.wwww The part I don''t understand is why the blend indices are multiplied by 1020.01 and not 256. Its a work around for the lack of UBYTE4 on gf3 as it says but I thought the multiply should be converting a 0-1 float to a 0-255 value so why 4x256 -1020 is used? AndyM (I think this skinning example is one of the most complicated pieces of example code ever seen!)

Share this post

Link to post
Share on other sites

  • Advertisement