Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //fragment
- #version 400 core
- out vec4 FragColor;
- in vec2 TexCoord;
- uniform sampler2D Texture;
- void main()
- {
- FragColor = texture(Texture, TexCoord);
- //FragColor = vec4(1.0f, 1.0f, 1.0f, 1.0f);
- }
- //vertex
- #version 400 core
- layout (location = 0) in vec3 aPos;
- layout (location = 1) in vec2 aTexCoord;
- layout (location = 2) in vec2 aNormals;
- out vec2 TexCoord;
- uniform mat4 model;
- uniform mat4 view;
- uniform mat4 projection;
- void main()
- {
- gl_Position = projection * view * model * vec4(aPos, 1.0f);
- TexCoord = aTexCoord;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement