mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
26 lines
660 B
GLSL
26 lines
660 B
GLSL
|
|
uniform mat4 cvfu_modelViewProjectionMatrix;
|
|
|
|
#ifdef CVF_CALC_CLIP_DISTANCES_IMPL
|
|
uniform mat4 cvfu_modelViewMatrix;
|
|
#endif
|
|
|
|
attribute vec4 cvfa_vertex;
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
/// Vertex Shader - Minimal
|
|
//--------------------------------------------------------------------------------------------------
|
|
void main ()
|
|
{
|
|
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
|
|
}
|