Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #type vertex
- #version 410 core
- layout(location = 0) in vec4 position;
- layout(location = 1) in vec4 aColor;
- layout(location = 2) in vec2 textCoords;
- out vec4 fColor;
- out vec2 vTexCoord;
- void main() {
- fColor = aColor;
- vTexCoord = textCoords;
- gl_Position = position;
- }
- #type fragment
- #version 410 core
- out vec4 color;
- in vec2 vTexCoord;
- in vec4 fColor;
- uniform sampler2D uTexture;
- uniform vec4 uColor;
- void main() {
- color = texture(uTexture, vTexCoord);
- // color = fColor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement