
This commit performs two main changes: * Alters the shaders to use only strictly conformant GLSL 2.0. * Alters the Windows UI to use ANGLE via GL ES 2.0 and EGL 1.4. This commit also drops official support for Windows XP, since ANGLE requires a non-XP toolset to build. It is still possible to build SolveSpace for Windows XP using: cmake -T v120_xp -DOPENGL=1
22 lines
542 B
GLSL
22 lines
542 B
GLSL
//-----------------------------------------------------------------------------
|
|
// SolveSpace Mesh rendering shader
|
|
//
|
|
// Copyright 2016 Aleksey Egorov
|
|
//-----------------------------------------------------------------------------
|
|
attribute vec3 pos;
|
|
attribute vec3 nor;
|
|
attribute vec4 col;
|
|
|
|
uniform mat4 modelview;
|
|
uniform mat4 projection;
|
|
|
|
varying vec3 fragNormal;
|
|
varying vec4 fragColor;
|
|
|
|
void main() {
|
|
fragNormal = vec3(modelview * vec4(nor, 0.0));
|
|
fragColor = col;
|
|
|
|
gl_Position = projection * modelview * vec4(pos, 1.0);
|
|
}
|