Files
ResInsight/VisualizationModules/LibRender/glsl/vs_MinimalTexture.glsl
2013-01-21 16:01:46 +01:00

29 lines
743 B
GLSL

uniform mat4 cvfu_modelViewProjectionMatrix;
#ifdef CVF_CALC_CLIP_DISTANCES_IMPL
uniform mat4 cvfu_modelViewMatrix;
#endif
attribute vec2 cvfa_texCoord;
attribute vec4 cvfa_vertex;
varying vec2 v_texCoord;
//--------------------------------------------------------------------------------------------------
/// Vertex Shader - Text
//--------------------------------------------------------------------------------------------------
void main ()
{
v_texCoord = cvfa_texCoord;
gl_Position = cvfu_modelViewProjectionMatrix * cvfa_vertex;
#ifdef CVF_CALC_CLIP_DISTANCES_IMPL
vec3 ecPosition = (cvfu_modelViewMatrix * cvfa_vertex).xyz;
calcClipDistances(vec4(ecPosition, 1));
#endif
#ifdef CVF_OPENGL_ES
gl_PointSize = 1.0;
#endif
}