View Full Version : where is textureCubeProj in GLSL?

10-15-2006, 04:39 AM

I can't find the projective version of textureCube, i.e. textureCubeProj, in the latest GLSL spec(1.20.8).

Why is this intentionally left out? I think HLSL has a function texCUBEproj for this purpose.


10-15-2006, 05:25 AM
Originally posted by inet:
Why is this intentionally left out?
Ming. Perhaps because its usefulness is highly questionable. After all, only direction is useful in a cubemap lookup, not length, so a scale by 1/w is essentially redundant.

I'm guessing the only reason it exists in HLSL is to satisfy as sense of symmetry with the other samplers in the API.