Sign in to follow this  
666_1337

NV_vertex_program constant factors?

Recommended Posts

666_1337    122
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
vincoof    514
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this