Where is textureCubeProj in GLSL?

Hi,

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.

Ming.

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.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.