Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Kody shaderów
- const GLchar* vertexSource = R"glsl(
- #version 150 core
- in vec3 position;
- in vec3 color;
- uniform mat4 model;
- uniform mat4 view;
- uniform mat4 proj;
- out vec3 Color;
- void main(){
- Color = color;
- gl_Position = proj * view * model * vec4(position, 1.0);
- }
- )glsl";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement