54 #if VL_PIPELINE_PRECISION == 1 56 #elif VL_PIPELINE_PRECISION == 2 70 if ( cam_changed || transf_changed )
84 #if VL_PIPELINE_PRECISION == 1 86 #elif VL_PIPELINE_PRECISION == 2 94 #if VL_PIPELINE_PRECISION == 1 96 #elif VL_PIPELINE_PRECISION == 2 105 mat3 normalmtx = modelview.
get3x3().invert().transpose();
106 #if VL_PIPELINE_PRECISION == 1 108 #elif VL_PIPELINE_PRECISION == 2 116 #if VL_PIPELINE_PRECISION == 1 118 #elif VL_PIPELINE_PRECISION == 2 const mat4 & viewMatrix() const
Returns the Camera's view matrix (inverse of the modeling matrix).
int vl_ProjectionMatrix() const
Returns the binding location of the vl_ProjectionMatrix uniform variable or -1 if no such variable is...
Wraps a GLSL program to which you can bind vertex, fragment and geometry shaders. ...
static Matrix4 getIdentity()
Visualization Library main namespace.
int vl_WorldMatrix() const
Returns the binding location of the vl_WorldMatrix uniform variable or -1 if no such variable is used...
The Matrix3 class is a template class that implements a generic 3x3 matrix, see also vl::dmat3...
int vl_ModelViewMatrix() const
Returns the binding location of the vl_ModelViewMatrix uniform variable or -1 if no such variable is ...
Matrix3< T_Scalar > get3x3() const
int vl_NormalMatrix() const
Returns the binding location of the vl_NormalMatrix uniform variable or -1 if no such variable is use...
Matrix3< float > fmat3
A 3x3 matrix using float precision.
virtual void updateMatrices(bool cam_changed, bool transf_changed, const GLSLProgram *glsl_program, const Camera *camera, const Transform *transform)
Update matrices of the current GLSLProgram, if glsl_program == NULL then fixed function pipeline is a...
const mat4 & projectionMatrix() const
The Camera's projection matrix.
bool Has_Fixed_Function_Pipeline
OpenGL: true if !Is_OpenGL_Forward_Compatible && !Is_OpenGL_Core_Profile OpenGL ES 1: always true Ope...
Matrix4< float > fmat4
A 4x4 matrix using float precision.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
int vl_ModelViewProjectionMatrix() const
Returns the binding location of the vl_ModelViewProjectionMatrix uniform variable or -1 if no such va...