PDA

View Full Version : How to make HLSL generate a LRP instruction


ariescode
19-May-2004, 12:04
I've been pondering with HLSL

but it doesn't seem to translate the high level "lerp" into a low level "lrp", which is bad, especially for ps1.1 (which I need)

does anyone know a solution?

DeanoC
19-May-2004, 13:37
Its the differences in input range between the HLSL and asm level. Try saturate on the input before using the lerp intrinsic.