Added support for shaders written in non-legacy GLSL.
This commit is contained in:
parent
1dcad60878
commit
db7e683688
18 changed files with 690 additions and 74 deletions
|
@ -1,5 +1,11 @@
|
|||
#version 150
|
||||
|
||||
in vec2 positionAttribute;
|
||||
|
||||
uniform mat4 modelViewProjectionMatrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
// Transform the vertex position
|
||||
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
||||
gl_Position = modelViewProjectionMatrix * vec4(positionAttribute, 0.0, 1.0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue