• Advertisement
Sign in to follow this  

NV_vertex_program constant factors?

This topic is 4947 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello

I've been using ARB_vertex_program for vertex shading for a long time, but now I thought everything would be much nicer if I could use the same shader no matter how many lights I use. Therefore I required to use NV_vertex_program(2), because of it's ability to use conditional jumps.
Unfortunately I had to notice that NV_vertex_program is not so easy to use as ARB_vertex_program, and reading the Specifications of all 4 NV_vertex_program versions (1, 1.1, 2, 3) I didn't find anything about constant values in the shaders, like the `0.15` in this arb_vertex_program line

MUL result.texcoord[2].y, 0.15, pos.z;

does anyone know how I would do that in NV_vertex_program?
Or... is it even possible?

Share this post


Link to post
Share on other sites
Advertisement
AFAIK you have to use either program parameters or vertex attributes, the recommended one for constants being program parameters of course. I don't know of any other way for specifying constant in NV_*_program*

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement