Where is textureCubeProj in GLSL?


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.


Originally posted by inet:
Why is this intentionally left out?

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.