NV_vertex_program constant factors?

Started by
0 comments, last by vincoof 19 years, 9 months ago
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?
our new version has many new and good features. sadly, the good ones are not new and the new ones are not good
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*

This topic is closed to new replies.

Advertisement