View Full Version : Texture lookup with derivatives in Cg ?

Nikolai Timofeev
03-18-2007, 10:21 PM
I work with Cg.
And I can't found functions for texture lookup
with explicit gradients.

But there is TXD instruction in GL_NV_fragment_program specification
and ARB_shader_texture_lod in openGL ( Cg can generate code for that profiles ).

03-19-2007, 03:41 AM
Those are on page 39 of the Cg User's manual (v 1.4).
They are referred to as 'with derivatives'.

Nikolai Timofeev
03-19-2007, 10:19 AM
Many thanks - that is it.