User specified kernal size?

Hello I have noticed that nvidia CG has the following listed in the CG doc:

Nonprojective texture lookup with user-specified filter kernel size:
tex2D (sampler2D tex, float2 s,
float2 dsdx, float2 dsdy );

I have been trying to find the equivalent in GLSL and can’t seem to find it… does anyone know if this exists in GLSL?

It is used in the per-pixel displacement mapping demo on nvidia’s website which is implemented in CG and SH.

It doesn’t exist in GLSL right now for reasons that’s beyond me.

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