Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- // Vert
- // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- #version 330 core
- layout (location = 0) in vec3 pos;
- out vec4 vertColor;
- void main()
- {
- gl_Position = vec4(pos, 1.0);
- vertColor = vec4(0.5, 0.0, 0.0, 1.0);
- }
- // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- // Frag
- // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- #version 330 core
- in vec4 vertColor;
- out vec4 fragColor;
- void main()
- {
- fragColor = vertColor;
- }
Advertisement
Add Comment
Please, Sign In to add comment