
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
14 lines
383 B
GLSL
14 lines
383 B
GLSL
//-----------------------------------------------------------------------------
|
|
// SolveSpace Indexed Mesh rendering shader
|
|
//
|
|
// Copyright 2016 Aleksey Egorov
|
|
//-----------------------------------------------------------------------------
|
|
uniform vec4 color;
|
|
uniform sampler2D texture;
|
|
|
|
varying vec2 fragTex;
|
|
|
|
void main() {
|
|
gl_FragColor = texture2D(texture, fragTex) * color;
|
|
}
|