gunslinger
05-28-2004, 04:47 AM
hi all,
i am working on a project based on a graphic library named OpenSG.
I want to add a couple of vertex/fragment programs, but i can't get the position of the camera (it is stored into a private variable).
Is there a state variable holding that data?
something like the ole good
PARAM mvp[4] = { state.matrix.mvp };
i.e.
PARAM camera[4] = { state.camera.pos }
thank you!
the G.
i am working on a project based on a graphic library named OpenSG.
I want to add a couple of vertex/fragment programs, but i can't get the position of the camera (it is stored into a private variable).
Is there a state variable holding that data?
something like the ole good
PARAM mvp[4] = { state.matrix.mvp };
i.e.
PARAM camera[4] = { state.camera.pos }
thank you!
the G.