Added shaders examples resources
This commit is contained in:
parent
0a345a6128
commit
9a578c5962
1 changed files with 179 additions and 23 deletions
19
examples/resources/shaders/shapes_base.vs
Normal file
19
examples/resources/shaders/shapes_base.vs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#version 110
|
||||
|
||||
attribute vec3 vertexPosition;
|
||||
attribute vec2 vertexTexCoord;
|
||||
attribute vec4 vertexColor;
|
||||
|
||||
uniform mat4 projectionMatrix;
|
||||
uniform mat4 modelviewMatrix;
|
||||
|
||||
varying vec2 fragTexCoord;
|
||||
varying vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragTexCoord = vertexTexCoord;
|
||||
fragColor = vertexColor;
|
||||
|
||||
gl_Position = projectionMatrix*modelviewMatrix*vec4(vertexPosition, 1.0);
|
||||
}
|
||||
Loading…
Reference in a new issue