View Full Version : texture access from vertex shader??
09-06-2004, 12:09 AM
how can i access a texture from a vertex shader?? texture2D doesn't work ..
09-06-2004, 12:25 AM
You need to use texture2DLod() or texture2DProjLod(). The regular texture lookup functions aren't allowed in a vertex shader.
09-06-2004, 02:42 AM
is the same problem .. 'no matching overload function found.' perhaps a driver problem???
09-06-2004, 03:07 AM
As far I know, only geforce 6800 can do texture look ups in vertex shader, and the geforce driver doesn't allows yet this feature, only througt NV propietary shader extensions (and maybe Cg 1.3) but this functionality is not avalaible in GLSL yet
Java Cool Dude
09-11-2004, 06:35 PM
For now with the current drivers from Nvidia, you can access texture data in vertex program after specifying OPTION NV_vertex_program3 right after the header.
You need proper configuration of the textures filtering though, otherwise you might just end up with 1-2 fps :D
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.