Shader talk

Hi, i’m very new to shaders so i’d like to know if it is possible, for example, to use a shader to light an object loaded as a display list.

Of course it is. (Unless the display list contains GL commands to turn off shaders.) Display lists just record what commands you issue (and, in the case of client state, what specific geometry you issue), and play that back when called.

ok, i found a cg example that does a simple lighting, it works but i have a problem: the display list is visualized without textures.
Perhaps, when generating the display list, i have to bind textures using the ARB extension instead of a simple glBindTexture function ?

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