Sign in to follow this  
lucky6969b

What is an half4 and half for Xoliulshader? gonna use it in D3D9?

Recommended Posts

Radikalizm    4807
Half primitives are usually half-precision (ie. 16-bit) floating point types, I'm not sure to which degree HLSL supports these (if at all) so a good alternative would be regular float primitives.

Share this post


Link to post
Share on other sites
Matias Goldberg    9576
What Hodgman said. On G70 & G60 hardware (and some Intel chips) it will faster (up to 2x faster).
But beware that if you're using new hardware, you may miss a few bugs. I've had a case where a half was overflowing it's 16-bit precision, but on new HW it worked correctly because it was just being calculated in 32-bit precision.

When we tried it on old HW (an nForce 6150 & an Intel Mobile 4 Series to be exact), all hell break loose; and had to change a few variables from half to float (and add a clamp statement for a few halfs).

Share this post


Link to post
Share on other sites
lucky6969b    1330
Okay, thanks. I'll take thorough thought about it. Another question is do you guys know where the shadowmap function (the functor is pointing at) is? I guess it is in 3ds max, but can't find it anywhere
Thanks
Jack Edited by lucky6969b

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this