mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-04 17:06:27 +00:00
The future of raylib!
Mapping of OpenGL 1.1 immediate mode functions to OpenGL 3.2+ (and OpenGL ES 2.0) programmable pipeline
This commit is contained in:
21
src/simple150.vert
Normal file
21
src/simple150.vert
Normal file
@@ -0,0 +1,21 @@
|
||||
#version 150
|
||||
|
||||
uniform mat4 projectionMatrix;
|
||||
uniform mat4 modelviewMatrix;
|
||||
|
||||
in vec3 vertexPosition;
|
||||
in vec2 vertexTexCoord;
|
||||
in vec4 vertexColor;
|
||||
|
||||
out vec2 fragTexCoord;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
// Pass some variables to the fragment shader
|
||||
fragTexCoord = vertexTexCoord;
|
||||
fragColor = vertexColor;
|
||||
|
||||
// Apply all matrix transformations to vertex
|
||||
gl_Position = projectionMatrix * modelviewMatrix * vec4(vertexPosition, 1.0);
|
||||
}
|
Reference in New Issue
Block a user