I’m not very experienced with shaders by any means, so please take the following with a grain of salt.
According to the documentation it looks like there are several ways to get to camera space/vector depending on where you are in the shader.
I think the camera vector is the same as the eye vector. I know the camera vector is supposed to be used for things like depth and figuring out the distance a object is from the camera, so... Yeah, I dunno.
For vertex shaders, you might be able to use INV_CAMERA_MATRIX
or/or MODELVIEW_MATRIX
. For fragment shaders, you CAMERA_MATRIX
or VIEW
.
There is also some videos about making 2D and 3D water in the documentation. I do not know if they use the camera vector or not though.
Hopefully this helps!